nasg/templates/Home.j2.html

37 lines
1.2 KiB
HTML
Raw Normal View History

2019-01-15 21:28:58 +00:00
{% extends "base.j2.html" %}
{% block title %}{{ post.headline }} - {{ site.name }}{% endblock %}
2019-01-15 21:28:58 +00:00
{% block meta %}
<meta name="author" content="{{ site.author.name }} <{{ site.author.email }}>" />
<meta name="description" content="{{ post.description|e }}" />
<link rel="canonical" href="{{ site.url }}" />
2019-01-15 21:28:58 +00:00
{% for category, latest in elements %}
<link rel="alternate" type="application/rss+xml" title="{{ category.title }} RSS feed" href="{{ category.feed }}" />
<link rel="alternate" type="application/atom+xml" title="{{ category.title }} ATOM feed" href="{{ category.feed }}atom.xml" />
<link rel="feed" title="{{ category.title}} feed" href="{{ category.url }}" />
{% endfor %}
{% endblock %}
2019-01-15 21:28:58 +00:00
{% block content %}
<main class="h-feed hatom">
2019-01-15 21:28:58 +00:00
<aside>
<div>
{{ post.text }}
2019-01-15 21:28:58 +00:00
</div>
</aside>
{% for category, post in posts %}
2019-01-15 21:28:58 +00:00
<section>
<h2>in:
<a href="{{ category.url|relurl(baseurl) }}">
<svg width="16" height="16"><use xlink:href="#icon-{{ category.name }}" /></svg>
{{ category.name }}
</a>
</h2>
{% include 'meta-article.j2.html' %}
2019-01-15 21:28:58 +00:00
</section>
{% endfor %}
</main>
{% endblock %}