about summary refs log tree commit diff
path: root/blog.node5.net/templates/folder.html
blob: 97c92a2092197eb5a2d34675b2dbee39bfc14989 (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
40
41
42
43
{% 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 }}">
				{% if article.folder_path %}
					<img src="{{ article.thumbnail_path }}" alt="📄"/>
        {% else %}
          <div style="width: 200px"></div>
				{% endif %}
				<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 %}