all repos — nasg @ ce9c806274ab7170037de88f57c5bf123ad767d1

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
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
{% extends "base.j2.html" %}

{% block meta %}
    <meta name="author" content="{{ author.name }} <{{ author.email }}>" />
    <meta name="description" content="{{ post.summary|e }}" />
    <link rel="canonical" href="{{ post.url }}" />
    {% 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 %}

{% block licence %}
    <link rel="license" href="https://spdx.org/licenses/{{ post.licence }}.html" type="{{ post.licence }}" />
{% endblock %}

{% block content %}
<main class="content-body h-feed hfeed" property="h-feed">
    <aside>
        <div>
            {{ post.html_content }}
        </div>
    </aside>

    {% for category, latest in elements %}
    <section>
        <h2>Latest in
            <a href="{{ category.url }}/">
                <svg width="16" height="16"><use xlink:href="#icon-{{ category.name }}" /></svg>
                {{ category.name }}
            </a>
        </h2>
        <article class="h-entry hentry singular" property="h-entry" lang="{{ latest.lang }}" itemprop="blogPost" itemscope="" itemtype="http://schema.org/BlogPosting" itemref="author">
            <header>
                <h3 class="p-name entry-title" property="p-name" itemprop="name headline" >
                {% if latest.is_reply %}
                    <svg class="icon" width="16" height="16">
                        <use xlink:href="#icon-reply" />
                    </svg>
                    <a href="{{ latest.url }}/" class="u-url bookmark" property="u-url" itemprop="url mainEntityOfPage">
                        RE:
                    </a>
                    <a href="{{ latest.is_reply }}" class="u-in-reply-to" property="u-in-reply-to">
                        {{ latest.is_reply }}
                    </a>
                {% else %}
                    <a href="{{ latest.url }}" title="{{ latest.title }}" class="u-url bookmark" property="u-url" itemprop="url mainEntityOfPage">
                        <span class="entry-title p-name" property="p-name">{{ latest.title }}</span>
                    </a>
                {% endif %}
                </h3>
            </header>

            {% if latest.summary %}
            <div class="e-summary entry-summary" property="e-summary" itemprop="description">
                {{ latest.html_summary }}
                <span class="more">
                    <a href="{{ latest.url }}" title="{{ latest.title }}">
                    {% if latest.lang == 'hu' %}Tovább »{% else %}Continue »{% endif %}
                    </a>
                </span>
            </div>
            {% else %}
            <div class="e-content entry-content" property="e-content" itemprop="articleBody">
                {{ latest.html_content }}
            </div>
            {% endif %}

            <footer aria-hidden="true" hidden="hidden">
                <span class="published updated">
                <time class="dt-published dt-updated" property="dt-published dt-updated" datetime="{{ latest.pubtime }}" itemprop="dateModified datePublished">{{ latest.pubdate }}</time>
                </span>
            {% if not latest.has_mainimg %}
                <img src="{{ author.avatar }}"
                    itemprop="image"
                    width="0"
                    height="0"
                    alt="Photo of {{ author.name }}" />
            {% endif %}
                <p class="p-author h-card vcard" property="p-author h-card">
                    <img class="photo avatar u-photo u-avatar"
                        property="u-photo u-avatar"
                        src="{{ author.avatar }}"
                        alt="Photo of {{ author.name }}" />
                    <a class="fn p-name url u-url u-uid"
                        property="p-name u-url u-uid"
                        href="{{ author.url }}"
                        rel="author">
                            {{ author.name }}
                    </a>
                    <a class="u-email email" property="u-email" href="mailto:{{ author.email }}">
                        {{ author.email }}
                    </a>
                </p>
            </footer>
        </article>
    </section>
{% endfor %}
</main>
{% endblock %}