There are at least 2 options that I know how to add RSS link to pelican-bootstrap3 theme.

To The Point

Adding RSS

First things first - if you have not yet setup your RSS at pelican with pelican-bootstrap3, you can with this in your configuration:

AUTHOR_FEED_ATOM = None # here you can put something like 'feeds/%s.author.xml'
AUTHOR_FEED_RSS = None # here you can put something like 'feeds/%s.author.xml'
FEED_ALL_ATOM = 'feeds/all.atom.xml'
TAG_FEED_ATOM = 'feeds/%s.tag.atom.xml'
CATEGORY_FEED_ATOM = 'feeds/%s.atom.xml'

RSS at the top menu of side.

You obviously can add RSS link on the top menu.

To do that add to your pelicanconf.py or publishconf.py in MENUITEMS list item like that:

MENUITEMS = [
    ['RSS', "feeds/all.atom.xml"]
]

RSS in the blogroll link

In the "blogroll" links:

LINKS = (
    ('RSS', "feeds/all.atom.xml")
)

Tweaking top-menu theme of pelican-bootstrap3

As suggested in this pelican blog setup - I decided to also tweak my top-menu theme items with icons.

To do this I've changed MENUITEMS generation at template/base.html with this:

{% for title, link, icon in MENUITEMS %}
    <li><a href="{{ link }}"><i class="fa {{icon}} fa-lg"></i>{{ title }}</a></li>
{% endfor %}

The MENUITEMS now looks like this:

MENUITEMS = [
    ['RSS', "feeds/all.atom.xml", 'fa-rss']
]

So from now on I can add one of FontAwesome icons into my menu-items with ease.

Acknowledgements

Auto-promotion

Related links

Thanks!

That's it :) Comment, share or don't - up to you.

Any suggestions what I should blog about? Post me a comment in the box below or poke me at Twitter: @anselmos88.

See you in the next episode! Cheers!



Comments

comments powered by Disqus