nasg/templates/meta-article.j2.html
Peter Molnar 79af56af9b - mastodon publish added besides "ordinary" fed.brid.gy (curiosity, for now)
- micropub moved to local from zapier - end of zapier-as-service for micropub experiment; it's too restricted for this purpose, mainly because timeouts on other remote services, such as bookmarks -> wallabag
- added unlinked worldmap view for of posts as early experiment
- added fediverse "stats"
- inlined JSON-LD - the sidecar json file is useless the way it was
- u-photo/u-featured is now out of e-content
- fixed accidentally swapp lon-lat to lat-lon
- added rel-licence to figures for encapsulated licence (future use)
- re-added twitter, added mastodon in footer
2019-10-25 09:43:50 +01:00

69 lines
2.5 KiB
HTML

{% if 'Photograph' == post['@type'] and post.image[0].width > post.image[0].height %}
{% set flexval_raw = post.image[0].width / post.image[0].height %}
{% else %}
{% set flexval_raw = 1 %}
{% endif %}
{% set flexval = flexval_raw|round|int %}
<article class="h-entry hentry" style="flex-grow: {{ flexval }}" lang="{{ post.inLanguage }}">
<header class="entry-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|relurl(baseurl) }}">
RE:
</a>
<a href="{{ post.mentions.url }}" class="u-in-reply-to">
{{ post.mentions.url }}
</a>
</span>
{% else %}
<a href="{{ post.url|relurl(baseurl) }}">
{{ post.headline }}
</a>
{% endif %}
</h3>
<a href="{{ post.url }}" class="u-url bookmark"></a>
</header>
{% if post.description|length %}
<section class="e-summary entry-summary">
{{ post.description|relurl(baseurl) }}
<span class="more">
<a href="{{ post.url|relurl(baseurl) }}">
{% if post.inLanguage == 'hu' %}Tovább »{% else %}Continue »{% endif %}
</a>
</span>
</section>
{% else %}
<section>
{% if post.image|length %}
{% for image in post.image %}
{% if image.representativeOfPage %}
{{ image.text|relurl(baseurl) }}
{% endif %}
{% endfor %}
{% endif %}
<div class="e-content entry-content">
{{ post.text|relurl(baseurl) }}
</div>
</section>
{% endif %}
<footer class="entry-footer" aria-hidden="true" hidden="hidden">
Published at
<time datetime="{{ post.datePublished }}" class="dt-published published">{{ post.datePublished|printdate }}</time>
<time datetime="{{ post.dateModified }}" class="dt-updated updated"></time>
by
<span class="p-author h-card vcard">
<img class="u-photo photo" src="{{ post.author.image|relurl(baseurl) }}" alt="" />
<a class="p-name u-url fn url 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>
</article>