diff --git a/dist/.gitignore b/dist/.gitignore index 3432c3f..827c232 100644 --- a/dist/.gitignore +++ b/dist/.gitignore @@ -1,2 +1,3 @@ *.html +*.css diff --git a/scripts/templates/default.css b/scripts/templates/default.css index be1ed98..21e8e20 100644 --- a/scripts/templates/default.css +++ b/scripts/templates/default.css @@ -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; diff --git a/scripts/web.sh b/scripts/web.sh index 7c7af60..07f7d9b 100755 --- a/scripts/web.sh +++ b/scripts/web.sh @@ -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