From 28b8721794bb8a4186ae10814f510806142a4815 Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Mon, 13 Nov 2023 18:29:04 -0500 Subject: Move header blocks to sidebar --- alabaster-lite/config.html | 4 ++-- alabaster-lite/sidebars/about.html | 15 ++------------- alabaster-lite/sidebars/title.html | 12 ++++++++++++ 3 files changed, 16 insertions(+), 15 deletions(-) create mode 100644 alabaster-lite/sidebars/title.html (limited to 'alabaster-lite') diff --git a/alabaster-lite/config.html b/alabaster-lite/config.html index 51f1871..10fc18a 100644 --- a/alabaster-lite/config.html +++ b/alabaster-lite/config.html @@ -7,7 +7,7 @@ "include_toc": e.include_toc | default(true), "extra_nav_links": e.extra_nav_links | default({}), "show_powered_by": e.show_powered_by | default(true), - "sidebars": e.sidebars | default(["about", "toc"]), + "sidebars": e.sidebars | default(["title", "toc"]), "homepage_nav": e.homepage_nav | default(true), - "homepage_sidebars": e.homepage_sidebars | default(["about"]), + "homepage_sidebars": e.homepage_sidebars | default(["title", "about"]), }%} diff --git a/alabaster-lite/sidebars/about.html b/alabaster-lite/sidebars/about.html index 89de15b..ed6cb0e 100644 --- a/alabaster-lite/sidebars/about.html +++ b/alabaster-lite/sidebars/about.html @@ -1,19 +1,8 @@ -{% if theme.logo %} - - {% if theme.logo_name %} -

{{ config.site_name }}

- {% endif %} -{% else %} -

{{ config.site_name }}

-{% endif %} -

This is technically a blog.

diff --git a/alabaster-lite/sidebars/title.html b/alabaster-lite/sidebars/title.html new file mode 100644 index 0000000..becb5b3 --- /dev/null +++ b/alabaster-lite/sidebars/title.html @@ -0,0 +1,12 @@ +{% if theme.logo %} + + {% if theme.logo_name %} +

{{ config.site_name }}

+ {% endif %} +{% else %} +

{{ config.site_name }}

+{% endif %} -- cgit v1.2.3