From ca22b6115b45931187ecc5e3001eb252ade169f3 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Thu, 9 Jun 2022 21:57:10 -0700 Subject: Add Theme Switcher --- templates/macros/macros.html | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) (limited to 'templates/macros/macros.html') diff --git a/templates/macros/macros.html b/templates/macros/macros.html index 8003420..4b6c7d5 100644 --- a/templates/macros/macros.html +++ b/templates/macros/macros.html @@ -1,17 +1,17 @@ {%- macro title(page) %}

{{ page.title }}

- {{ page.date | date(format="%B %d, %Y") }} - {%- if page.taxonomies.authors and config.taxonomies %} by - {%- for author in page.taxonomies.authors %} + + {%- if page.taxonomies.authors and config.taxonomies %} + {%- for author in page.taxonomies.authors %} {%- if author_flag %} and {% endif %} {{ author }} {%- set_global author_flag = true %} - {%- endfor %} - {%- elif config.extra.author and config.extra.author_show %} by {{ config.extra.author }} - {%- endif %} -{%- if page.taxonomies.categories %} [{% for cat in page.taxonomies.categories %}{{ cat }}{% endfor %}]{% endif %} -{%- if page.taxonomies.tags %} {%- for tag in page.taxonomies.tags %} #{{ tag }} {% endfor -%}{%- endif %} -{%- if config.extra.readtime %} - {{ page.reading_time }} {{ config.extra.readtime_string | default(value="min") }} {% endif %} + {%- endfor %} + {%- elif config.extra.author and config.extra.author_show %}{{ config.extra.author }} + {%- endif %} {{ page.date | date(format="%B %d, %Y") }} +{%- if page.taxonomies.categories %} [{% for cat in page.taxonomies.categories %}{{ cat }}{% endfor %}]{% endif %} +{%- if page.taxonomies.tags %} {%- for tag in page.taxonomies.tags %} #{{ tag }} {% endfor -%}{%- endif %} +{%- if config.extra.readtime %} {{ page.reading_time }} {{ config.extra.readtime_string | default(value="min") }} {% endif %} {%- endmacro title %} -- cgit v1.3.1