up
All checks were successful
/ publish (push) Successful in 59s

This commit is contained in:
milovann 2024-12-07 18:38:30 +01:00
parent 456b192da2
commit 59e91fb5c1
3 changed files with 24 additions and 3 deletions

1
dist/.gitignore vendored
View file

@ -1,2 +1,3 @@
*.html
*.css

View file

@ -23,6 +23,23 @@ body {
font-size: 1.8em;
}
}
.menu {
height: 100%;
width: 160px;
position: fixed;
z-index: 1;
top: 0;
left: 0;
background-color: #111;
overflow-x: hidden;
padding-top: 20px;
}
.main {
}
@media print {
html {
background-color: white;

View file

@ -1,5 +1,8 @@
#!/bin/bash
html_template="default.html"
css_template="default.css"
convert()
{
file=$1
@ -13,8 +16,8 @@ convert()
pandoc \
-s \
--verbose \
--template=templates/default.html \
--css=default.css \
--template=templates/$html_template \
--css=$css_template \
../pages/$filename.md \
-t html > ../dist/$filename.html \
--lua-filter=links-to-html.lua
@ -32,7 +35,7 @@ batch()
}
# Linked files
cp templates/default.css ../dist
cp templates/$css_template ../dist
# Options
case $1 in