From 93a246b4fb0ff4b17dadd65f2be0e1fb70f9d757 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Fri, 28 Oct 2022 14:29:45 +0530 Subject: [PATCH 1/3] fix: rm whole content/ directory instead of just the file --- scripts/prep.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/prep.sh b/scripts/prep.sh index cbfcefc..c65a4c8 100755 --- a/scripts/prep.sh +++ b/scripts/prep.sh @@ -20,7 +20,7 @@ readonly file="content/letter.md" set -euo pipefail init() { - rm -rf $file || true + rm -rf content || true mkdir content touch $file From 44a98fb20c31f7ec425f67f48fd1fb2f4f831c81 Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Fri, 28 Oct 2022 14:30:12 +0530 Subject: [PATCH 2/3] fix: links rendered from letter.md should point to root DESCRIPTION README.md is processed and written to content/letter.md before invoking Zola. templates/index.html uses a hack to render content/letter.md in index.html. So relative links defined in letter.md, will be relative to /letter/ This patch removes /letter/ from links --- scripts/zola.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/scripts/zola.sh b/scripts/zola.sh index 7d5cd09..e48bf70 100755 --- a/scripts/zola.sh +++ b/scripts/zola.sh @@ -80,6 +80,7 @@ build() { } no_absolute_url() { + sed -i 's/https:\/\/gitea-open-letter.coding.social\/letter\//https:\/\/gitea-open-letter.coding.social\//g' $(find public -type f | grep html) sed -i 's/https:\/\/gitea-open-letter.coding.social//g' $(find public -type f | grep html) } From 8c65b12a2a0101b6a846db9cb70721003cbc5e3f Mon Sep 17 00:00:00 2001 From: Aravinth Manivannan Date: Fri, 28 Oct 2022 14:35:11 +0530 Subject: [PATCH 3/3] fix: make in footnotes look like

DESCRIPTION Zola renders the footnotes as , so it looks weird on the website This snippet makes this particular look like normal text. --- sass/main.scss | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) diff --git a/sass/main.scss b/sass/main.scss index d265a3c..413b621 100644 --- a/sass/main.scss +++ b/sass/main.scss @@ -465,3 +465,25 @@ ul.language-select > li { display: none; } } + +.footnote-definition-label::before { + content: "["; +} + +.footnote-definition-label::after { + content: "] :"; +} + +.footnote-definition-label { + // zola renders the footnotes as , + // so it looks weird on the website + // This snippet makes this particular look like normal text + top: 4px; + position: relative; + font-size: 18px; +} + +.footnote-definition-label, +.footnote-definition > p { + display: inline; +}