Del category atom feed & add feed link in template

This commit is contained in:
Freezed 2019-02-13 16:03:18 +01:00
parent b6550fbbec
commit c7b48de896
3 changed files with 4 additions and 4 deletions

View File

@ -49,11 +49,13 @@ Je t'offre une bière la prochaine fois que l'on se croise avec le mot de passe
<a class="spaced" href="{{ link }}">{{ name }}</a>
{% endfor %}
{% endif %}
<span class="spaced">|</span>
{% if SOCIAL or FEED_ALL_ATOM or FEED_ALL_RSS %}
{% for name, link in SOCIAL %}
<a class="spaced" href="{{ link }}">{{ name|title }}</a>
{% endfor %}
{% if FEED_ALL_ATOM %}
<a class="spaced" href="{{ FEED_DOMAIN }}/{% if FEED_ALL_ATOM_URL %}{{ FEED_ALL_ATOM_URL }}{% else %}{{ FEED_ALL_ATOM }}{% endif %}" type="application/atom+xml" rel="alternate">Flux Atom</a>
{% endif %}
{% endif %}
<p class="spaced">
Frédéric Zind - <a href="https://creativecommons.org/licenses/by-sa/2.0/deed.fr" title="Licence du contenu">Copyleft CC-BY-SA</a> - 2011/2019

View File

@ -11,10 +11,9 @@ sys.path.append(os.curdir)
from pelicanconf import *
# If your site is available via HTTPS, make sure SITEURL begins with https://
SITEURL = 'https://free_zed.gitlab.io/mypelican'
SITEURL = 'http://free_zed.gitlab.io/mypelican'
FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml'
LINKS = (('Archives', '/mypelican/articles/'),
('Tags', '/mypelican/tags/'),

View File

@ -14,7 +14,6 @@ from pelicanconf import *
SITEURL = 'http://pro.zind.fr'
FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = 'feeds/{slug}.atom.xml'
# URL of the repo to link build commit
REPO_COMMIT_URL = 'https://gitlab.com/free_zed/free_zed.gitlab.io/commit'