diff options
author | Johannes 'josch' Schauer <josch@mister-muffin.de> | 2017-07-29 19:57:37 +0200 |
---|---|---|
committer | Johannes 'josch' Schauer <josch@mister-muffin.de> | 2017-07-29 20:05:55 +0200 |
commit | 09aae94c108f54b99614ac0747c24287dbce115d (patch) | |
tree | fb80e3c2dfaf3cd6b8dc5461787704bafc25d4cc /pelican-bootstrap3/templates/includes/sidebar/authors.html | |
parent | 2a00d3cbf6ed7745ae3cd2f6a557bad31d4a3990 (diff) | |
download | pelican-themes-09aae94c108f54b99614ac0747c24287dbce115d.tar.gz |
pelican-bootstrap3: Add authors to sidebar
Diffstat (limited to 'pelican-bootstrap3/templates/includes/sidebar/authors.html')
-rw-r--r-- | pelican-bootstrap3/templates/includes/sidebar/authors.html | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/pelican-bootstrap3/templates/includes/sidebar/authors.html b/pelican-bootstrap3/templates/includes/sidebar/authors.html new file mode 100644 index 0000000..114c688 --- /dev/null +++ b/pelican-bootstrap3/templates/includes/sidebar/authors.html @@ -0,0 +1,22 @@ +{% if DISPLAY_AUTHORS_ON_SIDEBAR %} + {% from 'includes/sidebar/macros.jinja' import title %} + +<!-- Sidebar/Authors --> +<li class="list-group-item"> + <h4>{{ title(_('Authors'), DISABLE_SIDEBAR_TITLE_ICONS) }}</h4> + <ul class="list-group" id="authors"> + {% for author, articles in authors|sort %} + <li class="list-group-item"> + <a href="{{ SITEURL }}/{{ author.url }}"> + {%- if not DISABLE_SIDEBAR_TITLE_ICONS -%} + <i class="fa fa-user fa-lg"></i> + {%- endif -%} + {{- author -}} + </a> + ({{ articles|count }}) + </li> + {% endfor %} + </ul> +</li> +<!-- End Sidebar/Authors --> +{% endif %} |