From 5038f39df9af01987b0d7b40c9fe415b80054467 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Sun, 12 Jun 2022 15:46:13 -0700 Subject: Config.toml Index Title Size, Improve Macros Organization --- templates/macros/macros.html | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) (limited to 'templates/macros') diff --git a/templates/macros/macros.html b/templates/macros/macros.html index c5d7a22..6d86916 100644 --- a/templates/macros/macros.html +++ b/templates/macros/macros.html @@ -1,4 +1,8 @@ -{%- macro title(page) %} +{%- macro title_post(page) %} +

{{ page.title }}

+{%- endmacro title_post %} + +{%- macro meta_post(page) %} {#- Author #} @@ -36,10 +40,14 @@ {#- Tags #} {%- if page.taxonomies.tags %} {%- for tag in page.taxonomies.tags %} #{{ tag }} {% endfor -%}{%- endif %} -{%- endmacro title %} - +{%- endmacro meta_post %} {%- macro title_index(page) %} +

{% if config.extra.title_size_index %}{% endif %}{{ page.title }}{% if config.extra.title_size_index %}{% endif %}

+{%- endmacro title_index %} + + +{%- macro meta_index(page) %} {#- Author #} @@ -77,7 +85,7 @@ {#- Tags #} {%- if page.taxonomies.tags %} {%- for tag in page.taxonomies.tags %} #{{ tag }} {% endfor -%}{%- endif %} -{%- endmacro title %} +{%- endmacro meta_index %} -- cgit v1.3.1