summaryrefslogblamecommitdiffstats
path: root/templates/index.html
blob: 0a0ace227b4db3f966d672ca06ea2d578dee54cd (plain) (tree)
1
2
3
4
5
6
7
8
9
10
                         



                                             
 
                   


                                    
 










                                                                                           
                                                                             
                                    
                                                                 









                                                                                              
                                
                                                                                                                       
                                 


                          
                      
{% extends "base.html" %}
{% block language %}
{% set translations = section.translations %}
{% include "translation-links.html" %}
{% endblock language %}

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

<section class="subsections">
	{% for sub in section.subsections %}
		{% set s = get_section(path=sub) %}
		<article>
			<header>
				<h1><a href="{{s.permalink | safe}}">{{ s.title }}</a></h1>
				<div class="description">
					{{ s.description | markdown | safe }}
				</div>
			</header>
			<section class="post-list">
				<h2>{{ trans(key="latest", lang=lang) }}</h2>
				<ul>
					{% for post in s.pages %}
						<li>
							{{ post.date }}:
							<a href="{{ post.permalink | safe }}">
								{{ post.title }}
							</a>
						</li>
						{% if loop.index == 5 %}{% break %}{% endif %}
					{% endfor %}
				</ul>
			</section>
			<footer>
				<a href="{{ s.permalink }}">{{ trans(key="allposts", lang=lang) }} {{ s.title }}...</a>
			</footer>
		</article>
	{% endfor %}
</section>
{% endblock content %}