Add a link for Atom feeds

This commit is contained in:
Bat 2018-09-01 21:16:38 +01:00
parent 97c0b533ab
commit 52860efa85
3 changed files with 9 additions and 3 deletions

View file

@ -23,7 +23,10 @@
</p> </p>
<section> <section>
<h2>{{ "Latest articles" | _ }}</h2> <h2>
{{ "Latest articles" | _ }}
<small><a href="/@/{{ blog.fqn }}/atom.xml"><i title="Atom feed" class="fa fa-rss"></i></a></small>
</h2>
{% if posts | length < 1 %} {% if posts | length < 1 %}
<p>{{ "No posts to see here yet." | _ }}</p> <p>{{ "No posts to see here yet." | _ }}</p>
{% endif %} {% endif %}

View file

@ -22,8 +22,8 @@
}}</a></span> }}</a></span>
&mdash; &mdash;
<span class="date">{{ date | date(format="%B %e, %Y") }}</span> <span class="date">{{ date | date(format="%B %e, %Y") }}</span>
&mdash;
{% if is_author %} {% if is_author %}
&mdash;
<a href="{{ article.url}}delete">{{ "Delete this article" | _ }}</a> <a href="{{ article.url}}delete">{{ "Delete this article" | _ }}</a>
{% endif %} {% endif %}
</p> </p>

View file

@ -19,7 +19,10 @@
</div> </div>
{% if recents | length != 0 %} {% if recents | length != 0 %}
<h2>{{ "Latest articles" | _ }}</h2> <h2>
{{ "Latest articles" | _ }}
<small><a href="/@/{{ user.fqn }}/atom.xml"><i title="Atom feed" class="fa fa-rss"></i></a></small>
</h2>
<div class="cards"> <div class="cards">
{% for article in recents %} {% for article in recents %}
{{ macros::post_card(article=article) }} {{ macros::post_card(article=article) }}