Add support for related video card after post header, add "fl-linux-install" posts for en and pt.

This commit is contained in:
天クマ 2026-04-20 15:18:46 -03:00
commit 6197930c8f
7 changed files with 253 additions and 6 deletions

View file

@ -11,14 +11,27 @@ title: Adrian Victor:Blog
{% if altLanguages.length > 0 %}
{{ i18n[langKey].availableInOtherLanguages }}:
{% for alt in altLanguages %}
<li class="inlineList">
<a href="{{ alt.url }}" hreflang="{{ alt.lang }}">
<li class="inlineList">
<a href="{{ alt.url }}" hreflang="{{ alt.lang }}">
{{ i18n[alt.lang].language }}
</a>
</li>
</a>
</li>
{% endfor %}
{% endif %}
</div>
{% if postVideoLink and postVideoImage and postVideoTitle and postVideoWebsite %}
<a href="{{ postVideoLink }}">
<div class="blogpostYoutubeVideo">
<img src="/static/images/thumbnails/{{ postVideoImage }}">
<div class="videoHeader">
<p class="alsoAvailable">{{ i18n[langKey].alsoAvailableAsVideo }}:</p>
<h2 class="videoTitle">{{ postVideoTitle }}</h2>
<p>{{ postVideoWebsite }}{% if postVideoDuration %} ({{ postVideoDuration }}){% endif %}</p>
</div>
<!-- <p class="goLabel">ir</p> -->
</div>
</a>
{% endif %}
{{ content | safe }}
</article>
</main>