From 7d691159df6e0f64129d3c11f4e8026dca3a72d1 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Fri, 16 Sep 2022 18:53:45 -0700 Subject: Add Authors for post extras --- templates/macros/macros.html | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'templates/macros/macros.html') 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 %} {{ author }} {%- set_global author_flag = true %} {%- endfor %} + {%- elif page.extra.authors and config.extra.meta_post.author %} + {%- if config.extra.icon_author %} {% 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 %} {% 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 %} {{ author }} {%- set_global author_flag = true %} {%- endfor %} + {%- elif page.extra.authors and config.extra.meta_index.author %} + {%- if config.extra.icon_author %} {% 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 %} {% 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 %}
{%- endif %} {%- endif %} -- cgit v1.3.1