diff options
| author | Jieiku | 2022-08-23 13:41:41 -0700 |
|---|---|---|
| committer | Jieiku | 2022-08-23 13:41:41 -0700 |
| commit | c7b914505b6505b013610cc71e3b50d68c4a5473 (patch) | |
| tree | d2abebfa75cedd1b7351b51f9d5c909834e8d05d /templates/macros/macros.html | |
| parent | 6e6c0cbbb5d6136788d35ee5a354d36079c3475a (diff) | |
| download | abridge-c7b914505b6505b013610cc71e3b50d68c4a5473.tar.gz abridge-c7b914505b6505b013610cc71e3b50d68c4a5473.tar.bz2 abridge-c7b914505b6505b013610cc71e3b50d68c4a5473.zip | |
Optimizations, Update Readme YellowLabTools
Diffstat (limited to 'templates/macros/macros.html')
| -rw-r--r-- | templates/macros/macros.html | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/templates/macros/macros.html b/templates/macros/macros.html index 97b481f..dd3b75c 100644 --- a/templates/macros/macros.html +++ b/templates/macros/macros.html @@ -1,8 +1,8 @@ -{%- macro title_post(page) %} +{%- macro title_post(page, config) %} <h1><a href="{{ page.permalink | safe }}{%- if config.extra.uglyurls %}index.html{%- endif %}">{{ page.title }}</a></h1> {%- endmacro title_post %} -{%- macro meta_post(page) %} +{%- macro meta_post(page, config) %} <span{%- if config.extra.meta_post.size %} class="{{ config.extra.meta_post.size }}"{% endif %}> {#- Author #} @@ -42,12 +42,12 @@ {%- 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 meta_post %} -{%- macro title_index(page) %} +{%- macro title_index(page, config) %} <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) %} +{%- macro meta_index(page, config) %} <span{%- if config.extra.meta_index.size %} class="{{ config.extra.meta_index.size }}"{% endif %}> {#- Author #} @@ -99,7 +99,7 @@ {%- endmacro footer %} -{%- macro pagination(paginator)%} +{%- macro pagination(paginator, config)%} {%- if paginator.number_pagers > 1 %} {%- if paginator.number_pagers <= 5 %} {# 5 or less pager is simple, just display all 5 #} {%- set start = 1 %} |
