diff options
| -rw-r--r-- | templates/macros/macros.html | 18 | ||||
| -rw-r--r-- | templates/page.html | 2 |
2 files changed, 16 insertions, 4 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 %} diff --git a/templates/page.html b/templates/page.html index 203959a..198cb58 100644 --- a/templates/page.html +++ b/templates/page.html @@ -80,7 +80,7 @@ {%- block gotop %} {%- if page.reading_time %} -{%- if page.reading_time > 1 %} +{%- if page.reading_time > 2 %} <span class="topout"> <span class="topleft"> </span><a href="#" class="top" title="Back to Top">{%- if config.extra.icon_top %}<i class="{{ config.extra.icon_top }}"></i>{%- else %}⋏{%- endif %}</a> </span> |
