From 59ab2fbab63161a6baf8ac619a90af340ce2c12a Mon Sep 17 00:00:00 2001 From: Caleb Maclennan Date: Thu, 13 Feb 2025 12:48:31 +0300 Subject: [PATCH] Revert commits with Zola features that were not yet in Nix Revert "Remove Zola 0.18 specific feature until Nix package updates" Revert "Add work-around for removing content until Zola update lands in Nix" This reverts commit 8a2236f4c1fd5f2cb1fa89c43c4eb8db321389f6. This reverts commit 0f1b4463e4f3d8ac8089275399545d90a595aa37. --- sass/main.scss | 6 ------ templates/index.html | 2 +- 2 files changed, 1 insertion(+), 7 deletions(-) diff --git a/sass/main.scss b/sass/main.scss index e5bdcc8..b3fe97d 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -14,12 +14,6 @@ p, pre { margin-bottom: 1em; } -// Drop this hack when Zola 0.18 lands in Nix and we restore the regex that -// removes this from source... -section h1 { - display: none; -} - h2 { font-size: 1.2em; font-weight: bold; diff --git a/templates/index.html b/templates/index.html index b2a968b..7679b80 100644 --- a/templates/index.html +++ b/templates/index.html @@ -4,6 +4,6 @@ {{ section.content | safe }} {% set readme = load_data(path="/README.md") %} -{{ readme | markdown | safe }} +{{ readme | regex_replace(pattern="^# .*", rep="") | markdown | safe }} {% endblock %}