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/index.html | 20 +------------------- templates/macros/head.html | 8 ++++++-- templates/macros/macros.html | 25 +++++++++++++++++++++++++ templates/macros/social.html | 2 +- 4 files changed, 33 insertions(+), 22 deletions(-) (limited to 'templates') diff --git a/templates/index.html b/templates/index.html index c17ee63..9c25da9 100644 --- a/templates/index.html +++ b/templates/index.html @@ -40,25 +40,7 @@
{%- endfor %} - {%- if paginator.previous or paginator.next %} - - {%- endif %} + {{- macros::pagination(paginator=paginator) }} {%- set section_item = get_section(path="_index.md") %} {%- if config.extra.recent | default(value=true) %} 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) %}