pelican-clean-blog/templates/authors.html
2017-04-06 07:38:23 +01:00

38 lines
1.3 KiB
HTML

{% extends "index.html" %}
{% block title %}{{ SITENAME }} - {{ gettext('Authors') }}{% endblock title %}
{% block header %}
<!-- Page Header -->
{% if HEADER_COVER %}
<header class="intro-header" style="background-image: url('{{ HEADER_COVER }}')">
{% elif HEADER_COLOR %}
<header class="intro-header" style="background-color: {{ HEADER_COLOR }}">
{% else %}
<header class="intro-header" style="background-image: url('{{ SITEURL }}/{{ THEME_STATIC_DIR }}/images/home-bg.jpg')">
{% endif %}
<div class="container">
<div class="row">
<div class="col-lg-8 col-lg-offset-2 col-md-10 col-md-offset-1">
<div class="post-heading">
<h1>{{ gettext('Articles by %(name)s', name=author) }}</h1>
</div>
</div>
</div>
</div>
</header>
{% endblock header %}
{% block content %}
{% for author, articles in authors|sort %}
<div class="post-preview">
<a href="{{ SITEURL }}/{{ author.url }}" rel="bookmark">
<h2 class="post-title">
{{ author }} ({{ articles|count }})
</h2>
</a>
</div>
<hr>
{% endfor %}
{% endblock content %}