nasg/templates/Home.j2.html

36 lines
1.3 KiB
HTML

{% extends "base.j2.html" %}
{% block title %}{{ post.headline }} - {{ site.name }}{% endblock %}
{% block meta %}
{% set feed = site.url + '/feed/' %}
<meta name="author" content="{{ site.author.name }} <{{ site.author.email }}>" />
<meta name="description" content="{{ post.description|e }}" />
<link rel="canonical" href="{{ site.url }}" />
<link rel="alternate" type="application/rss+xml" title="{{ site.title }} RSS feed" href="{{ feed }}" />
<link rel="alternate" type="application/atom+xml" title="{{ site.title }} ATOM feed" href="{{ feed }}atom.xml" />
<link rel="alternate" type="application/json" title="{{ site.title }} JSON feed" href="{{ feed }}index.json" />
<link rel="feed" title="{{ site.title}} feed" href="http://www.unmung.com/feed?feed={{ feed|urlencode }}" />
{% endblock %}
{% block content %}
<main class="h-feed hatom">
<aside>
<div>
{{ post.text }}
</div>
</aside>
{% for category, post in posts %}
<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' %}
</section>
{% endfor %}
</main>
{% endblock %}