deployment-script, style: Add chapter "numbers", add support for span.chapter
parent
3dabdcceb3
commit
f26ab58f32
|
@ -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 " <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>"
|
||||
done
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue