Browse Source

Add a link on header to directly subscribe to atom feeds as links in <head> are not enough (now that browser does not display RSS preview anymore)

pull/4/head
LecygneNoir 5 years ago
parent
commit
e548dfac97
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      pelicanconf.py
  2. +1
    -0
      theme/templates/base.html

+ 1
- 1
pelicanconf.py View File

@ -69,7 +69,7 @@ TIMEZONE = 'Europe/Paris'
DEFAULT_LANG = u'fr'
# Feed generation is usually not desired when developing
FEED_ALL_ATOM = None
FEED_ALL_ATOM = 'feeds/all.atom.xml'
CATEGORY_FEED_ATOM = None
TRANSLATION_FEED_ATOM = None
AUTHOR_FEED_ATOM = None

+ 1
- 0
theme/templates/base.html View File

@ -72,6 +72,7 @@
<li {% if page_name == 'categories' %} class="active"{% endif %}><a href="{{ SITEURL }}/categories.html">Categories</a></li>
<li {% if page_name == 'tags' %} class="active"{% endif %}><a href="{{ SITEURL }}/tags.html">Tags</a></li>
<li {% if page_name == 'archives' %} class="active"{% endif %}><a href="{{ SITEURL }}/archives.html">Archives</a></li>
<li><a href="{{ FEED_DOMAIN }}/{{ FEED_ALL_ATOM }}">Flux Atom</a></li>
<li><form class="navbar-search" action="{{ SITEURL }}/search.html" onsubmit="return validateForm(this.elements['q'].value);"> <input type="text" class="search-query" placeholder="Search" name="q" id="tipue_search_input"></form></li>
</ul>
</div>

Loading…
Cancel
Save