Merge pull request #43 from MrSenko/social_header
Show social icons on index page header
This commit is contained in:
commit
df3818c102
@ -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
|
||||
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user