From f26ab58f32576b37a81444427bda5d48ed4266ea Mon Sep 17 00:00:00 2001 From: BodgeMaster <> Date: Wed, 6 Dec 2023 18:11:28 +0100 Subject: [PATCH] deployment-script, style: Add chapter "numbers", add support for span.chapter --- deployment-script.sh | 5 +++-- html_resources/style.css | 12 ++++++++++++ 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/deployment-script.sh b/deployment-script.sh index 042ae97..be3a5fa 100755 --- a/deployment-script.sh +++ b/deployment-script.sh @@ -2,9 +2,10 @@ cp html_resources/index_template.html index.html function genlinks { - for FILE in $(find . -maxdepth 1 -type f -name "*-*.html" | sort); do + for FILE in $(find . -maxdepth 1 -type f -name "??-*.html" | sort); do echo -ne "
  • \n" - grep -oe ".*" $FILE | sed -e 's/ / /;s| ||' + echo -n " $(sed -e 's/-.*//' <<< "$FILE") ' + grep -oe ".*" $FILE | sed -e 's/ //;s| ||' echo "
  • " done } diff --git a/html_resources/style.css b/html_resources/style.css index 5103d3f..a77198e 100644 --- a/html_resources/style.css +++ b/html_resources/style.css @@ -149,6 +149,18 @@ span.quote.thought::after { position: relative; bottom: 0.15em; } +span.chapter::before { + content: "\25b9"; + font-size: 0.75em; + position: relative; + bottom: 0.15em; +} +span.chapter::after { + content: "\25c3"; + font-size: 0.75em; + position: relative; + bottom: 0.15em; +} button.back { font-size: 2.8em;