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/index.html | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) (limited to 'templates/index.html') diff --git a/templates/index.html b/templates/index.html index a2f5b30..03a652c 100644 --- a/templates/index.html +++ b/templates/index.html @@ -26,8 +26,8 @@
{%- for page in paginator.pages %}
- {{- macros::title(page=page) }} -

+

{{ page.title }}

+

{%- if page.summary %} {{ page.summary | markdown(inline=true) | safe }} {%- elif page.description %} @@ -38,6 +38,17 @@ {%- endif %} ...more

+ + {%- 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 %}{{ config.extra.author }} + {%- endif %} {{ page.date | date(format="%Y %B %d") }}{%- if config.extra.readtime %} {{ page.reading_time }} {{ config.extra.readtime_string | default(value="min") }} {% 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 %}
{%- endfor %} {{- macros::pagination(paginator=paginator) }} -- cgit v1.3.1