From d8cd3b9988f9021ea1b285db3231048acb7b74f4 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Mon, 30 May 2022 22:47:37 -0700 Subject: Add Font Files and cachebust --- templates/base.html | 10 ++++++++++ templates/macros/macros.html | 20 +++++++++++++++++++- 2 files changed, 29 insertions(+), 1 deletion(-) (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index d148811..e811e33 100644 --- a/templates/base.html +++ b/templates/base.html @@ -126,6 +126,16 @@ {% endif %} {% endif %} + {% if config.extra.fonts_load %} + {% for i in config.extra.fonts %} + {% if 'http' in i.url %} + + {% else %} + + {% endif %} + {% endfor %} + {% endif %} + {% if config.build_search_index %} diff --git a/templates/macros/macros.html b/templates/macros/macros.html index bfaaaae..f343828 100644 --- a/templates/macros/macros.html +++ b/templates/macros/macros.html @@ -1,10 +1,28 @@ {% macro title(page) %}

{{ page.title }}

-{{ page.date | date(format="%B %d, %Y") }}{% if page.taxonomies.categories %} [{% for cat in page.taxonomies.categories %}{{ cat }}{% endfor %}]{% endif %} +{{ page.date | date(format="%B %d, %Y") }} + +{% if page.taxonomies.authors and config.taxonomies %} by + {% 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 | default(value=true) %} + - {{ page.reading_time }} min +{% endif %} {% endmacro title %} + + {% macro footer(page) %}

Back to top

{% endmacro footer %} -- cgit v1.3.1