website/templates/news_post.html
Alexander Borsuk 530d000b05 Better links
Signed-off-by: Alexander Borsuk <me@alex.bio>
2023-06-29 08:19:06 +02:00

19 lines
482 B
HTML

{% extends 'base.html' %}
{% block content %}
<h1>{{ resource.date | date(format='%B %e, %Y') }}</h1>
<div class="news_content">
{{ resource.content | safe }}
</div>
{% for photo in resource.assets | sort %}
<img class="news_image" src="{{ resource.path | safe }}{{ photo | split(pat='/') | last }}" />
{% endfor %}
<div class="back_to_news">
<a href="{{ get_url(path="@/news/_index.md", lang=lang) }}">{{ trans(key='back', lang=lang) }}</a>
</div>
{% endblock content %}