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












                                                                                   
                                                                   
                                                              
                                                                            









                                                                                                                        




                                                                                                      

                                                                              




                                                                                         

                                                          
                                                                             
                                                                                               
                                                                                                                     







                                                                    

                      
{% 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 | reverse %}
					<article class="post">
						<header class="post-header">
							<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>
							<h1 class="post-title">
								<a href="{{ post.permalink | safe }}">
									{{ post.title }}
								</a>
							</h1>
						</header>
						<section class="post-summary">
							{% if post.summary %}
								{{ post.summary | safe }}
							{% else %}
								{{ post.content | safe }}
							{% endif %}
						</section>
						<footer>
							{% if post.summary %}
								<a href="{{ post.permalink }}">
									{{ trans(key="moreprompt", lang=post.lang) }}
								</a>
							{% endif %}
						</footer>
					</article>
				{% endfor %}
			</ul>
		{% endfor %}
	</ul>
</div>
{% endblock content %}