diff options
Diffstat (limited to 'templates/macros')
| -rw-r--r-- | templates/macros/macros.html | 18 |
1 files changed, 15 insertions, 3 deletions
diff --git a/templates/macros/macros.html b/templates/macros/macros.html index dd3b75c..2c17530 100644 --- a/templates/macros/macros.html +++ b/templates/macros/macros.html @@ -8,10 +8,16 @@ {#- Author #} {%- if page.taxonomies.authors and config.taxonomies %} {%- for author in page.taxonomies.authors %} - {%- if author_flag %} and {% endif %} + {%- if author_flag %}, {% endif %} <a href="{{ get_taxonomy_url(kind='authors', name=author) | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ author }}</a> {%- set_global author_flag = true %} {%- endfor %} + {%- elif page.extra.authors and config.extra.meta_post.author %} + {%- if config.extra.icon_author %}<i class="{{ config.extra.icon_author }}"></i> {% endif %} + {%- for author in page.extra.authors %} + {%- if author_flag %}, {% endif %} {{ author }} + {%- set_global author_flag = true %} + {%- endfor %} {%- elif config.extra.author and config.extra.meta_post.author %} {%- if config.extra.icon_author %}<i class="{{ config.extra.icon_author }}"></i> {% endif %} {{ config.extra.author }} {%- endif %} @@ -53,10 +59,16 @@ {#- Author #} {%- if page.taxonomies.authors and config.taxonomies %} {%- for author in page.taxonomies.authors %} - {%- if author_flag %} and {% endif %} + {%- if author_flag %}, {% endif %} <a href="{{ get_taxonomy_url(kind='authors', name=author) | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ author }}</a> {%- set_global author_flag = true %} {%- endfor %} + {%- elif page.extra.authors and config.extra.meta_index.author %} + {%- if config.extra.icon_author %}<i class="{{ config.extra.icon_author }}"></i> {% endif %} + {%- for author in page.extra.authors %} + {%- if author_flag %}, {% endif %} {{ author }} + {%- set_global author_flag = true %} + {%- endfor %} {%- elif config.extra.author and config.extra.meta_index.author %} {%- if config.extra.icon_author %}<i class="{{ config.extra.icon_author }}"></i> {% endif %} {{ config.extra.author }} {%- endif %} @@ -92,7 +104,7 @@ {%- macro footer(page) %} {%- if page.reading_time %} -{%- if page.reading_time > 1 %} +{%- if page.reading_time > 2 %} <p><b><a href="#">Back to top</a></b></p> {%- endif %} {%- endif %} |
