Merge pull request #43 from MrSenko/social_header

Show social icons on index page header
This commit is contained in:
Gilson Filho 2016-05-22 12:39:09 -03:00
commit df3818c102
2 changed files with 15 additions and 0 deletions

View File

@ -41,6 +41,8 @@ SOCIAL = (('twitter', 'https://twitter.com/myprofile'),
```
If you have new links add them to SOCIAL. The Name has to be the name of the corresponding FontAwesome icon.
If ``SHOW_SOCIAL_ON_INDEX_PAGE_HEADER`` is set to True social icons will be
shown under site sub-title on the index page.
### External feed URL

View File

@ -19,6 +19,19 @@
<hr class="small">
<span class="subheading">{{ SITESUBTITLE }}</span>
{% endif %}
{% if SOCIAL and SHOW_SOCIAL_ON_INDEX_PAGE_HEADER %}
<ul class="list-inline text-center">
{% for name,link in SOCIAL %}
<li>
<a href="{{ link }}">
<span class="fa-stack fa-lg">
<i class="fa fa-{{ name|lower }} fa-stack-1x fa-inverse"></i>
</span>
</a>
</li>
{% endfor %}
</ul>
{% endif %}
</div>
</div>
</div>