commit
1360d551b8
10
README.md
10
README.md
@ -23,12 +23,14 @@ HEADER_COVER = 'static/my_image.png'
|
|||||||
Github, Twitter and Facebook URLs set these properties:
|
Github, Twitter and Facebook URLs set these properties:
|
||||||
|
|
||||||
```python
|
```python
|
||||||
GITHUB_URL = 'http://github.com/myprofile'
|
SOCIAL = (('twitter', 'https://twitter.com/myprofile'),
|
||||||
TWITTER_URL = 'http://twitter.com/myprofile'
|
('github', 'https://github.com/myprofile'),
|
||||||
FACEBOOK_URL = 'http://facebook.com/myprofile'
|
('facebook','https://facebook.com/myprofile'),
|
||||||
|
('flickr','https://www.flickr.com/myprofile/'),
|
||||||
|
('envelope','mailto:my@mail.address'))
|
||||||
```
|
```
|
||||||
|
|
||||||
If you have insert new links, customize ``base.html``.
|
If you have new links add them to SOCIAL. The Name has to be the name of the corresponding FontAwesome icon.
|
||||||
|
|
||||||
### Code highlights
|
### Code highlights
|
||||||
|
|
||||||
|
@ -133,35 +133,17 @@
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
|
||||||
<ul class="list-inline text-center">
|
<ul class="list-inline text-center">
|
||||||
{% if TWITTER_URL %}
|
{% if SOCIAL %}
|
||||||
<li>
|
{% for name,link in SOCIAL %}
|
||||||
<a href="{{ TWITTER_URL }}">
|
<li>
|
||||||
<span class="fa-stack fa-lg">
|
<a href="{{ link }}">
|
||||||
<i class="fa fa-circle fa-stack-2x"></i>
|
<span class="fa-stack fa-lg">
|
||||||
<i class="fa fa-twitter fa-stack-1x fa-inverse"></i>
|
<i class="fa fa-circle fa-stack-2x"></i>
|
||||||
</span>
|
<i class="fa fa-{{ name|lower }} fa-stack-1x fa-inverse"></i>
|
||||||
</a>
|
</span>
|
||||||
</li>
|
</a>
|
||||||
{% endif %}
|
</li>
|
||||||
{% if FACEBOOK_URL %}
|
{% endfor %}
|
||||||
<li>
|
|
||||||
<a href="{{ FACEBOOK_URL }}">
|
|
||||||
<span class="fa-stack fa-lg">
|
|
||||||
<i class="fa fa-circle fa-stack-2x"></i>
|
|
||||||
<i class="fa fa-facebook fa-stack-1x fa-inverse"></i>
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
{% endif %}
|
|
||||||
{% if GITHUB_URL %}
|
|
||||||
<li>
|
|
||||||
<a href="{{ GITHUB_URL }}">
|
|
||||||
<span class="fa-stack fa-lg">
|
|
||||||
<i class="fa fa-circle fa-stack-2x"></i>
|
|
||||||
<i class="fa fa-github fa-stack-1x fa-inverse"></i>
|
|
||||||
</span>
|
|
||||||
</a>
|
|
||||||
</li>
|
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</ul>
|
</ul>
|
||||||
<p class="copyright text-muted">Blog powered by <a href="http://getpelican.com">Pelican</a>,
|
<p class="copyright text-muted">Blog powered by <a href="http://getpelican.com">Pelican</a>,
|
||||||
|
Loading…
Reference in New Issue
Block a user