nasg/templates/Home.j2.html
Peter Molnar 67f2978aeb Reverting layout back to divs, because the "semantic" structuring of HTML5 is a mess and only complicates my life.
It's also for more backwards compatibility, though <figure> and <figcaption> is going to stay, because those make a lot of sense.

Coming up next: out with JSON-LD. It was an interesting experiment which didn't bring any good at all, even in the long run.
2020-05-17 18:14:43 +01:00

38 lines
1.4 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.name }} RSS feed" href="{{ feed }}{{ fnames.rss }}" />
<link rel="alternate" type="application/atom+xml" title="{{ site.name }} ATOM feed" href="{{ feed }}{{ fnames.atom }}" />
<link rel="alternate" type="application/json" title="{{ site.name }} JSON feed" href="{{ feed }}{{ fnames.json }}" />
<link rel="feed" title="{{ site.name }} feed" href="http://www.unmung.com/feed?feed={{ feed|urlencode }}" />
{% endblock %}
{% block content %}
<div id="main" class="h-feed hatom">
<div class="section" id="intro">
<div>
{{ post.text }}
</div>
</div>
{% set isFrontPage = 1 %}
<div id="latest">
<h1>Latest entries</h1>
{% for category, post in posts %}
<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' %}
{% endfor %}
</div>
</div>
{% endblock %}