From f7046e6094d50a9e22ce2746b3cbb5cf7e8825e6 Mon Sep 17 00:00:00 2001 From: Jieiku Date: Tue, 31 May 2022 00:48:53 -0700 Subject: Paginator Macro, Fonts, Search, Whitespace Cleanup --- templates/macros/head.html | 8 ++++++-- templates/macros/macros.html | 25 +++++++++++++++++++++++++ templates/macros/social.html | 2 +- 3 files changed, 32 insertions(+), 3 deletions(-) (limited to 'templates/macros') diff --git a/templates/macros/head.html b/templates/macros/head.html index 6216830..0107b83 100644 --- a/templates/macros/head.html +++ b/templates/macros/head.html @@ -6,9 +6,9 @@ {%- macro resource() %} {%- if config.extra.fonts_load and config.extra.fonts %}{%- for i in config.extra.fonts %} {%- if i.url is matching("^http[s]?://") %} - + {%- else %} - + {%- endif %} {%- endfor %}{%- endif %} @@ -17,8 +17,12 @@ {%- endif %} {%- if config.build_search_index %} + {%- if config.extra.js_search_index %} + {%- endif %} + {%- if config.extra.js_search %} + {%- endif %} {%- endif %} {%- if config.generate_feed %} diff --git a/templates/macros/macros.html b/templates/macros/macros.html index 82e856a..a639a73 100644 --- a/templates/macros/macros.html +++ b/templates/macros/macros.html @@ -19,3 +19,28 @@ {%- macro footer(page) %}

Back to top

{%- endmacro footer %} + + +{%- macro pagination(paginator)%} + {%- if paginator.number_pagers > 1 %} + + {%- endif %} +{%- endmacro %} diff --git a/templates/macros/social.html b/templates/macros/social.html index 05eeb82..37c66af 100644 --- a/templates/macros/social.html +++ b/templates/macros/social.html @@ -40,7 +40,7 @@ {%- if social_config.youtube %} {% endif %} {%- if social_config.buymeacoffee %} - {% endif %} + {% endif %} {%- if social_config.github_sponsor %} {% endif %} -- cgit v1.3.1