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 ++++++++++++ docs/index.md | 28 ++++------------------------ 4 files changed, 20 insertions(+), 39 deletions(-) create mode 100644 alabaster-lite/sidebars/title.html 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 %} diff --git a/docs/index.md b/docs/index.md index 5a9c442..4b72cf5 100644 --- a/docs/index.md +++ b/docs/index.md @@ -2,28 +2,8 @@ title: Home --- -

fkfd.me

- -
- -
- - About -
-
- -
- - x -
-
- -
- - Links -
-
-
+ +

fkfd.me — about

## Categories @@ -78,7 +58,7 @@ title: Home -## Blogposts I don't regret +## Favorite blogposts - The nand2tetris series where I build a computer @@ -95,7 +75,7 @@ title: Home - Continuously updating: [My life goals](random/life_goals.md) -## Fun +## For fun - [bongo cat](/toys/bongo) — [bongo.cat](https://bongo.cat), de-Googled, de-Cloudflared -- cgit v1.2.3