mirror of
https://github.com/nairobilug/pelican-alchemy.git
synced 2024-12-30 12:15:06 +01:00
Add fontawesome icons to article meta
This commit is contained in:
parent
304d9530d3
commit
151c18da13
2 changed files with 18 additions and 10 deletions
|
|
@ -17,25 +17,33 @@
|
|||
<article 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.authors and ARTICLE_AUTHORS %}
|
||||
<li>·</li>
|
||||
<li>By
|
||||
{% for author in article.authors %}
|
||||
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>{% if not loop.last %}, {% endif %}
|
||||
{% endfor %}
|
||||
<li class="text-muted" title="{{ article.date.isoformat() }}">
|
||||
<i class="fa fa-fw fa-clock-o"></i>
|
||||
{{ article.locale_date }}
|
||||
</li>
|
||||
<li>·</li>
|
||||
<li>
|
||||
<i class="fa fa-fw fa-folder-open"></i>
|
||||
<a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if article.tags %}
|
||||
<li>·</li>
|
||||
<li>
|
||||
<i class="fa fa-fw fa-tags"></i>
|
||||
{% for tag in article.tags %}
|
||||
<a href="{{ SITEURL }}/{{ tag.url }}">#{{ tag }}</a>{% if not loop.last %}, {% endif %}
|
||||
{% endfor %}
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if article.authors and ARTICLE_AUTHORS %}
|
||||
<li>·</li>
|
||||
<li>
|
||||
<i class="fa fa-fw fa-users"></i>
|
||||
{% for author in article.authors %}
|
||||
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>{% if not loop.last %}, {% endif %}
|
||||
{% endfor %}
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
</header>
|
||||
{{ article.content }}
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ All Articles
|
|||
<div class="text-muted" title="{{ article.date.isoformat() }}">{{ article.locale_date }}</div>
|
||||
<div><a href="{{ SITEURL }}/{{ article.category.url }}">{{ article.category }}</a></div>
|
||||
{% if article.authors and ARTICLE_AUTHORS %}
|
||||
<div>By
|
||||
<div>
|
||||
{% for author in article.authors %}
|
||||
<a href="{{ SITEURL }}/{{ author.url }}">{{ author }}</a>{% if not loop.last %}, {% endif %}
|
||||
{% endfor %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue