all repos — nasg @ c6755e6125b8b3f2d134f4fc865c171bcb9f04a1

templates/meta-article.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
<article class="h-entry hentry" lang="{{ post.inLanguage }}">
    <header>
        <h3 class="p-name entry-title">
        {% if post.mentions %}
            <span>
                <svg width="16" height="16">
                    <use xlink:href="#icon-reply" />
                </svg>
                <a href="{{ post.url }}">
                    RE:
                </a>
                <a href="{{ post.mentions.url }}" class="u-in-reply-to">
                    {{ post.mentions.url }}
                </a>
            </span>
        {% else %}
            <a href="{{ post.url }}">
                {{ post.headline }}
            </a>
        {% endif %}

        </h3>
        <a href="{{ post.url }}" class="u-url"></a>
    </header>

    {% if post.description|length %}
    <div class="e-summary entry-summary">
        {{ post.description }}
        <span class="more">
            <a href="{{ post.url }}">
            {% if post.inLanguage == 'hu' %}Tovább »{% else %}Continue »{% endif %}
            </a>
        </span>
    </div>
    {% else %}
    <div class="e-content entry-content">
        {{ post.text }}
    </div>
    {% endif %}

    <footer aria-hidden="true" hidden="hidden">
        <time datetime="{{ post.datePublished }}" class="published dt-published"></time>
        <time datetime="{{ post.dateModified }}" class="updated dt-updated"></time>
        <span class="p-author h-card vcard">
            <img class="photo avatar u-photo u-avatar"
                src="{{ post.author.image }}"
                alt="Photo of {{ post.author.name }}" />
            <a class="fn p-name url u-url u-uid org" href="{{ post.author.url }}">
                {{ post.author.name }}
            </a>
            <a class="u-email email" href="mailto:{{ post.author.email }}">
                {{ post.author.email }}
            </a>
        </span>
    </footer>
    <script type="application/ld+json">
    {%
        set basedata = {
            "@context": post['@context'],
            "@type": post['@type'],
            "inLanguage": post.inLanguage,
            "headline": post.headline,
            "url": post.url,
            "mainEntityOfPage": post.mainEntityOfPage,
            "dateModified": post.dateModified,
            "datePublished": post.datePublished,
            "copyrightYear": post.copyrightYear,
            "license": post.license,
            "image": post.image,
            "author": post.author,
            "sameAs": post.sameAs,
            "publisher": post.publisher,
            "name": post.name,
            "description": post.description
        }
    %}
    {{ basedata|tojson(indent=4) }}
    </script>
</article>