Add social page with archived mastodon posts, move source to /site
This commit is contained in:
parent
a301a5cc5e
commit
648869bf76
40 changed files with 58 additions and 2 deletions
|
|
@ -1,31 +0,0 @@
|
|||
---
|
||||
layout: base.njk
|
||||
title: Adrian Victor:Blog
|
||||
---
|
||||
{% set altLanguages = collections.post | alternateLanguages(postId, langKey) %}
|
||||
{% from "macros.njk" import videoCard with context %}
|
||||
|
||||
<main>
|
||||
<article>
|
||||
<div id="postHeader">
|
||||
<h1>{{ postTitle }}</h1>
|
||||
<p>{{ i18n[langKey].readingTime }}: {{ content | readingTime }}</p>
|
||||
<p>{{ authors or "Adrian Victor" }} - <b>{{ date | postDate }}</b>{% if lastModified | postDate !== date | postDate %} ({{ i18n[langKey].lastEditedIn }} {{ lastModified | postDate }}){% endif %}</p>
|
||||
{% if altLanguages.length > 0 %}
|
||||
{{ i18n[langKey].availableInOtherLanguages }}:
|
||||
{% for alt in altLanguages %}
|
||||
<li class="inlineList">
|
||||
<a href="{{ alt.url | url }}" hreflang="{{ alt.lang }}">
|
||||
{{ i18n[alt.lang].language }}
|
||||
</a>
|
||||
</li>
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
{% if postVideoLink and postVideoImage and postVideoTitle and postVideoWebsite %}
|
||||
{{ videoCard(postVideoLink, postVideoTitle, postVideoImage, postVideoWebsite, postVideoDuration) }}
|
||||
{% endif %}
|
||||
|
||||
{{ content | safe }}
|
||||
</article>
|
||||
</main>
|
||||
Loading…
Reference in a new issue