deployment-script, style: Add chapter "numbers", add support for span.chapter

master
BodgeMaster 2023-12-06 18:11:28 +01:00
parent 3dabdcceb3
commit f26ab58f32
2 changed files with 15 additions and 2 deletions

View File

@ -2,9 +2,10 @@
cp html_resources/index_template.html index.html cp html_resources/index_template.html index.html
function genlinks { 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 " <li><a href=\"$FILE\">\n" echo -ne " <li><a href=\"$FILE\">\n"
grep -oe "<title>.*</title>" $FILE | sed -e 's/<title> / /;s| </title>||' echo -n " $(sed -e 's/-.*//' <<< "$FILE") <span class="'"chapter">'
grep -oe "<title>.*</title>" $FILE | sed -e 's/<title> //;s| </title>|</span>|'
echo " </a></li>" echo " </a></li>"
done done
} }

View File

@ -149,6 +149,18 @@ span.quote.thought::after {
position: relative; position: relative;
bottom: 0.15em; 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 { button.back {
font-size: 2.8em; font-size: 2.8em;