about summary refs log tree commit diff
path: root/blog.node5.net/templates/folder.html
blob: ae9456ef429934504c2d15fd192eeaa3c6bec633 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{% extends "base.html" %}
{% block head %}
  {{ super() }}
  <link rel="stylesheet" type="text/css" href="/folder.css">
{% endblock %}
{% block content %}
	<ol class="entries">
		{% for article in folder.articles %}
		<li class="entry">
			<a href="{{ article.name }}">
        <img src="{{ article.thumbnail_path }}" alt="📄"/>
				<div class="entry-text">
					<div>
						<h3 class="inline">{{ article.name }}</h3>

						{% include 'article_meta_data.html' %}
					</div>
				</div>
			</a>
		</li>
    <hr>
		{% endfor %}
	</ol>

	{% if folder.sub_folders|length > 0 %}
	<hr>

	<ol>
		{% for folder in folder.sub_folders.values() %}
		<li class="entry">
			<a href="{{ folder.name }}">
				<h3 class="inline">📁 {{ folder.name }}</h3>
			</a>
		</li>
		{% endfor %}
	</ol>
	{% endif %}

{% endblock %}