summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrederick Yin <fkfd@fkfd.me>2023-11-13 18:29:04 -0500
committerFrederick Yin <fkfd@fkfd.me>2023-11-13 18:29:04 -0500
commit28b8721794bb8a4186ae10814f510806142a4815 (patch)
tree57dda99aa7b7f497d8bcff212589806947f5c060
parentad678d325bacc7e40da4ae15248570466917b50b (diff)
Move header blocks to sidebar
-rw-r--r--alabaster-lite/config.html4
-rw-r--r--alabaster-lite/sidebars/about.html15
-rw-r--r--alabaster-lite/sidebars/title.html12
-rw-r--r--docs/index.md28
4 files changed, 20 insertions, 39 deletions
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 %}
- <p class="logo">
- <a href="{{nav.homepage.url|url}}">
- <img class="logo" src="{{base_url}}/{{theme.logo}}" title="{{theme.logo_title}}">
- </a>
- </p>
- {% if theme.logo_name %}
- <h1 class="logo">{{ config.site_name }}</h1>
- {% endif %}
-{% else %}
- <h1 class="logo"><a href="{{nav.homepage.url|url}}">{{ config.site_name }}</a></h1>
-{% endif %}
-
<p class="blurb">This is technically a blog.</p>
<ul>
<li><a href="/about">About Me</a></li>
<li><a href="/feed/atom.xml">Atom Feed</a></li>
+ <li><a href="/links">Links</a></li>
+ <li><a href="/x">~x</a></li>
</ul>
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 %}
+ <p class="logo">
+ <a href="{{nav.homepage.url|url}}">
+ <img class="logo" src="{{base_url}}/{{theme.logo}}" title="{{theme.logo_title}}">
+ </a>
+ </p>
+ {% if theme.logo_name %}
+ <h1 class="logo">{{ config.site_name }}</h1>
+ {% endif %}
+{% else %}
+ <h1 class="logo"><a href="{{nav.homepage.url|url}}">{{ config.site_name }}</a></h1>
+{% 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
---
-<h1 id="fkfdme">fkfd.me</h1>
-
-<header class="header-block-container">
- <a href="about/">
- <div class="header-block">
- <span class="header-icon" id="icon-about"></span>
- <span class="header-text">About</span>
- </div>
- </a>
- <a href="/x">
- <div class="header-block">
- <span class="header-icon" id="icon-x"></span>
- <span class="header-text">x</span>
- </div>
- </a>
- <a href="links/">
- <div class="header-block">
- <span class="header-icon" id="icon-links"></span>
- <span class="header-text">Links</span>
- </div>
- </a>
-</header>
+<!-- written in HTML to disable the ¶ thing on page title -->
+<h1>fkfd.me — <a href="/about">about</a></h1>
## Categories
@@ -78,7 +58,7 @@ title: Home
</a>
</div>
-## 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