mirror of
https://github.com/nairobilug/pelican-alchemy.git
synced 2024-12-30 12:15:06 +01:00
- 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
45 lines
1.2 KiB
HTML
45 lines
1.2 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{% block head %}
|
|
{{ super() }}
|
|
{% if article.summary %}
|
|
<meta name="description" content="{{ article.summary|striptags }}">
|
|
{% endif %}
|
|
{% endblock %}
|
|
|
|
{% block title %}
|
|
{{ article.title|striptags }} {{ super() }}
|
|
{% endblock %}
|
|
|
|
{% block page_header %}
|
|
{{ article.title }}
|
|
{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="article">
|
|
<div class="article-header">
|
|
<ul class="list-inline">
|
|
<li class="text-muted" title="{{ article.date.isoformat() }}">{{ article.locale_date }}</li>
|
|
<li>·</li>
|
|
<li><a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></li>
|
|
{% if article.author and SHOW_ARTICLE_AUTHOR %}
|
|
<li>·</li>
|
|
<li>By <a href="{{ SITEURL }}/{{ article.author.url }}">{{ article.author }}</a></li>
|
|
{% endif %}
|
|
{% if article.tags %}
|
|
<li>·</li>
|
|
<li>
|
|
{% for tag in article.tags %}
|
|
<a href="{{ SITEURL }}/{{ tag.url }}">#{{ tag }}</a>{% if not loop.last %}, {% endif %}
|
|
{% endfor %}
|
|
</li>
|
|
{% endif %}
|
|
</ul>
|
|
</div>
|
|
<div class="article-main">
|
|
{{ article.content }}
|
|
</div>
|
|
</div>
|
|
<hr>
|
|
{% include 'include/comments.html' %}
|
|
{% endblock %}
|