From 03f402c3e4fe8865571cf462e60dec5e0c9b713a Mon Sep 17 00:00:00 2001 From: Jieiku Date: Mon, 30 May 2022 22:38:50 -0700 Subject: Add Search and Improve Contrast --- templates/base.html | 36 +++++++++++++++++++++++++++++++++--- templates/index.html | 2 +- 2 files changed, 34 insertions(+), 4 deletions(-) (limited to 'templates') diff --git a/templates/base.html b/templates/base.html index f43dcba..18e1fb4 100644 --- a/templates/base.html +++ b/templates/base.html @@ -8,6 +8,24 @@ {% block title %}{% if page.title %}{{ page.title }} | {% endif %}{{ config.title }}{% endblock title %} + {% if is_404 %} + + {% else %} + + + + {% endif %} + {% if current_url %} + {% set page_url = current_url %} + {% else %} + {% set page_url = get_url(path="404.html") %} + {% endif %} + {% if current_path %} + {% set page_path = current_path %} + {% else %} + {% set page_path = "/404.html" %} + {% endif %} + {% block description %} {% if page.description %} @@ -40,8 +58,7 @@ {% if config.extra.google %}{% endif %} {% if config.extra.bing %}{% endif %} - - + @@ -109,6 +126,11 @@ {% endif %} {% endif %} + {% if config.build_search_index %} + + + {% endif %} + {% block extra_head %}{% endblock extra_head %} @@ -118,11 +140,19 @@

{{ config.extra.textlogo | safe }}

-
+
+ {% if config.build_search_index %} +
+
+ +
+
+
+ {% endif %} {% if config.extra.sitedesc %} {% if config.description %} diff --git a/templates/index.html b/templates/index.html index ad4af41..79e187a 100644 --- a/templates/index.html +++ b/templates/index.html @@ -14,7 +14,7 @@
{% set section_item = get_section(path="_index.md") %} - {% if recent %} + {% if config.extra.recent | default(value=true) %}

Recent Posts

-- cgit v1.3.1