aboutsummaryrefslogtreecommitdiff
path: root/templates/macros/macros.html
diff options
context:
space:
mode:
authorJieiku2022-06-12 15:46:13 -0700
committerJieiku2022-06-12 15:46:13 -0700
commit5038f39df9af01987b0d7b40c9fe415b80054467 (patch)
treefbe18c88ba546b295a96dbb3a6a8b46efa4df2f1 /templates/macros/macros.html
parentfa52eeda3caa552a481a8cd8dc71349af9b67d0a (diff)
downloadabridge-5038f39df9af01987b0d7b40c9fe415b80054467.tar.gz
abridge-5038f39df9af01987b0d7b40c9fe415b80054467.tar.bz2
abridge-5038f39df9af01987b0d7b40c9fe415b80054467.zip
Config.toml Index Title Size, Improve Macros Organization
Diffstat (limited to 'templates/macros/macros.html')
-rw-r--r--templates/macros/macros.html16
1 files changed, 12 insertions, 4 deletions
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) %}
+ <h1><a href="{{ page.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ page.title }}</a></h1>
+{%- endmacro title_post %}
+
+{%- macro meta_post(page) %}
<span{%- if config.extra.meta_post.size %} class="{{ config.extra.meta_post.size }}"{% endif %}>
{#- Author #}
@@ -36,10 +40,14 @@
{#- Tags #}
{%- if page.taxonomies.tags %} {%- for tag in page.taxonomies.tags %} #<a href="{{ get_taxonomy_url(kind='tags', name=tag) | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ tag }}</a> {% endfor -%}{%- endif %}</span>
-{%- endmacro title %}
-
+{%- endmacro meta_post %}
{%- macro title_index(page) %}
+ <h1>{% if config.extra.title_size_index %}<span class="{{ config.extra.title_size_index }}">{% endif %}<a href="{{ page.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ page.title }}</a>{% if config.extra.title_size_index %}</span>{% endif %}</h1>
+{%- endmacro title_index %}
+
+
+{%- macro meta_index(page) %}
<span{%- if config.extra.meta_index.size %} class="{{ config.extra.meta_index.size }}"{% endif %}>
{#- Author #}
@@ -77,7 +85,7 @@
{#- Tags #}
{%- if page.taxonomies.tags %} {%- for tag in page.taxonomies.tags %} #<a href="{{ get_taxonomy_url(kind='tags', name=tag) | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ tag }}</a> {% endfor -%}{%- endif %}</span>
-{%- endmacro title %}
+{%- endmacro meta_index %}