Support for link posts through the Link: metadata field

This commit is contained in:
Michiel Scholten 2020-01-06 12:50:02 +01:00 committed by Vitaly Potyarkin
commit 9f2ca43677
4 changed files with 18 additions and 2 deletions

View file

@ -10,7 +10,13 @@
{% endblock %}
{% block page_header %}
{% if article.link %}
<a href="{{ article.link }}" rel="bookmark">
{% endif %}
{{ article.title }}
{% if article.link %}
<i class="fas fa-link"></i></a>
{% endif %}
{% endblock %}
{% block content %}
@ -53,6 +59,11 @@
</header>
<div class="content">
{{ article.content }}
{% if article.link %}
<p class="link-button"><a href="{{ article.link }}" rel="bookmark">
<i class="fas fa-link"></i> view link
</a></p>
{% endif %}
</div>
</article>
{% include 'include/comments.html' %}