summaryrefslogtreecommitdiffstats
path: root/templates/index.html
blob: d883a5771354c8bc647427fa6ecf8b72bcce205e (plain) (blame)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
{% extends "base.html" %}
{% block content %}

<div class="home">
	<section id="home-blurb">
		{{ section.content | safe }}
	</section>

	<ul class="subsections">
		{% for sub in section.subsections %}
		  {% set s = get_section(path=sub) %}
			<li><a href="{{s.permalink | safe}}">{{ s.title }}</a></li>
			<ul class="post-list">
				{% for post in s.pages %}
					<article>
						<header class="post-header">
							<h1 class="post-title">
								<a href="{{ post.permalink | safe }}">
									{{ post.title }}
								</a>
							</h1>
							<div class="post-meta">
								{{ post.date }}
								{% if post.taxonomies["tags"] | length > 0 %}
									<ul class="post-tags">
										{% for tag in post.taxonomies["tags"] %}
											<li class="tag">{{ tag }}</li>
										{% endfor %}
									</ul>
								{% endif %}
							</div>
						</header>
						<section class="post-summary">
							{{ post.summary | safe }}
						</section>
						<footer>
							{% if post.content | length > post.summary | length %}
								<a href="{{ post.permalink }}">
									{% if post.lang == 'en' %}More...{% else %}Les mer...{% endif %}
								</a>
							{% endif %}
						</footer>
					</article>
				{% endfor %}
			</ul>
		{% endfor %}
	</ul>
  <section id="stream">
    <ul class="post-list">
      {% for post in section.pages %}
        <article>
					<header class="post-header">
						<h1 class="post-title"><a href="{{ post.permalink }}">{{ post.title }}</a></h1>
						<div class="post-meta">
							{{ post.date }}
							{% if post.taxonomies["tags"] | length > 0 %}
							  <ul class="post-tags">
								  {% for tag in post.taxonomies["tags"] %}
								    <li class="tag">{{ tag }}</li>
								  {% endfor %}
							  </ul>
							{% endif %}
						</div>
					</header>
          <section class="post-summary">
            {{ post.summary | safe }}
          </section>
          <footer>
            {% if post.content | length > post.summary | length %}
              <a href="{{ post.permalink }}">
                {% if post.lang == 'en' %}More...{% else %}Les mer...{% endif %}
              </a>
            {% endif %}
          </footer>
        </article>
      {% endfor %}
    </ul>
  </section>

</div>
{% endblock content %}