Add a link to RSS feed.

This commit is contained in:
Víðir Valberg Guðmundsson 2019-03-12 10:27:09 +01:00
parent 92a5f67ae3
commit 8b45c4629d
2 changed files with 7 additions and 0 deletions

View file

@ -1,5 +1,6 @@
{% extends 'base.html' %} {% extends 'base.html' %}
{% load commonmark %} {% load commonmark %}
{% load static %}
{% block title %} {% block title %}
News | {{ block.super }} News | {{ block.super }}
@ -8,6 +9,12 @@ News | {{ block.super }}
{% block content %} {% block content %}
{% if request.resolver_match.kwargs.archived %} {% if request.resolver_match.kwargs.archived %}
<i>Showing archived news items. <a href="{% url 'news:index' archived=False %}">Show regular news items</a></i> <i>Showing archived news items. <a href="{% url 'news:index' archived=False %}">Show regular news items</a></i>
{% else %}
<br />
<a href="{% url 'news:feed' %}" class="btn btn-default">
<img src="{% static 'img/feed-icon-14x14.png' %}"> Get BornHack news as a RSS feed
</a>
<hr />
{% endif %} {% endif %}
{% for item in news_items %} {% for item in news_items %}
<div> <div>

Binary file not shown.

After

Width:  |  Height:  |  Size: 689 B