mirror of
https://github.com/nairobilug/pelican-alchemy.git
synced 2024-12-30 12:15:06 +01:00
Simplify jinja2 base templates, update theme options
- New realfavicongenerator.net packages (https://realfavicongenerator.net/blog/new-favicon-package-less-is-more/) - Support all possible Pelican feed links - Add recommended HEAD elements (https://github.com/joshbuchea/HEAD) - Use minified css assets - Link to boostrap, clean-blog and font-awesome stylesheets - Add theme options, better options names Template consistency, update structure on base.html Fix missing article summary on index.html Show the article.summary for teasers
This commit is contained in:
parent
cb4f2e862f
commit
23ef8ca9cc
15 changed files with 288 additions and 245 deletions
|
|
@ -1,61 +0,0 @@
|
|||
<header class="header">
|
||||
<div class="container">
|
||||
{% if PROFILE_IMAGE %}
|
||||
<div class="header-image pull-left">
|
||||
<a class="nodec" href="{{ SITEURL }}"><img src={{ PROFILE_IMAGE }}></a>
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="header-inner">
|
||||
<h1 class="header-name">
|
||||
<a class="nodec" href="{{ SITEURL }}">{{ SITENAME }}</a>
|
||||
</h1>
|
||||
<h3 class="header-text">{{ SITE_SUBTEXT }}</h3>
|
||||
<ul class="header-menu list-inline">
|
||||
{% for title, link in MENU_ITEMS %}
|
||||
<li><a class="nodec" href="{{ link }}" target="_blank">{{ title }}</a></li>
|
||||
{% endfor %}
|
||||
{% if PAGES_ON_MENU %}
|
||||
{% for p in PAGES %}
|
||||
{% if loop.first %}
|
||||
<li class="muted">|</li>
|
||||
{% endif %}
|
||||
<li><a class="nodec" href="{{ SITEURL }}/{{ p.url }}">{{ p.title }}</a></li>
|
||||
{% if loop.last %}
|
||||
<li class="muted">|</li>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% if CATEGORIES_ON_MENU %}
|
||||
<li><a class="nodec" href="{{ SITEURL }}/categories.html">Categories</a></li>
|
||||
<li class="muted">|</li>
|
||||
{% endif %}
|
||||
{% if TAGS_ON_MENU %}
|
||||
<li><a class="nodec" href="{{ SITEURL }}/tags.html">Tags</a></li>
|
||||
<li class="muted">|</li>
|
||||
{% endif %}
|
||||
{% if ARCHIVES_ON_MENU %}
|
||||
<li><a class="nodec" href="{{ SITEURL }}/archives.html">Archives</a></li>
|
||||
<li class="muted">|</li>
|
||||
{% endif %}
|
||||
{% if EMAIL_ADDRESS %}
|
||||
<li><a class="nodec icon-mail-alt" href="mailto:{{ EMAIL_ADDRESS }}"></a></li>
|
||||
{% endif %}
|
||||
{% if GITHUB_ADDRESS %}
|
||||
<li><a class="nodec icon-github" href="{{ GITHUB_ADDRESS }}"></a></li>
|
||||
{% endif %}
|
||||
{% if SO_ADDRESS %}
|
||||
<li><a class="nodec icon-stackoverflow" href="{{ SO_ADDRESS }}"></a></li>
|
||||
{% endif %}
|
||||
{% if TWITTER_ADDRESS %}
|
||||
<li><a class="nodec icon-twitter" href="{{ TWITTER_ADDRESS }}"></a></li>
|
||||
{% endif %}
|
||||
{% if FB_ADDRESS %}
|
||||
<li><a class="nodec icon-facebook" href="{{ FB_ADDRESS }}"></a></li>
|
||||
{% endif %}
|
||||
{% if FEED_ATOM or FEED_RSS %}
|
||||
<li><a class="nodec icon-rss" href="/{% if FEED_ATOM %}{{ FEED_ATOM }}{% else %}{{ FEED_RSS }}{% endif %}"></a></li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</header> <!-- /.header -->
|
||||
Loading…
Add table
Add a link
Reference in a new issue