Add AUTHOR and SOCIAL on the first page

This commit is contained in:
Yorick Barbanneau 2020-02-21 15:22:41 +01:00
parent 8f28d9a11d
commit cb6ff686db

View file

@ -52,6 +52,42 @@
</div>
</header>
<!-- Author info on first page -->
{% if not articles_page.has_previous() %}
<section id="blog-author" {% if selected_cover or selected_color %}class="has-cover"{% endif %} >
<div class="inner">
<aside class="post-author">
{% if PROFILE_IMAGE %}
<figure class="post-author-avatar">
<img src="/{{PROFILE_IMAGE}}" alt="{{AUTHOR}}" />
</figure>
{% endif %}
<div class="post-author-bio">
<h4 class="post-author-name">{{AUTHOR}}</h4>
{% if BIO %}
<p class="post-author-about">{{BIO}}</p>
{% endif %}
{% if LOCATION %}
<span class="post-author-location"><i class="ic ic-location"></i>
{{LOCATION}}
</span>
{% endif %}
<!-- Social linkes in alphabet order. -->
{% for name,link in SOCIAL %}
<span class="post-author-{{name}}">
<a target="_blank" href="{{link}}"><i class="ic ic-{{name}}"></i>{{name}}</a></span>
{% endfor %}
<span class="post-author-stats">
<i class="ic ic-posts"></i> {{ articles|count }}
{% if articles|count > 1 %} posts {% else %} post {% endif %}
</span>
</div>
<div class="clear"></div>
</aside>
</div>
</section>
{% endif %}
{% endblock header %}
{% block content %}