all repos — nasg @ 71bf7f7266346dfa864e92779028f51da28f11ca

templates/Home.j2.html (view raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
{% 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 %}
<main id="main" class="h-feed hatom">
    <section id="intro">
        <div>
            {{ post.text }}
        </div>
    </section>

    {% set isFrontPage = 1 %}
    <section 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 %}
    </section>
</main>
{% endblock %}