diff --git a/site-files/make-page.sh b/site-files/make-page.sh index 245ebe0..40f679b 100755 --- a/site-files/make-page.sh +++ b/site-files/make-page.sh @@ -2,15 +2,10 @@ set -e dir=$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd) +pandoc -f markdown-smart --data-dir . --template ${dir}/template.html -t html -o $dir/tmp.html $dir/index.md --metadata title="$(grep -m 1 -oP '(?<=^# ).*' $dir/index.md | cat)" +sed -i "s/sourceCode /language-/g" $dir/tmp.html while true; do - #pandoc -f markdown-smart --data-dir . --template ${dir}/template.html -t html -o $dir/tmp.html $dir/index.md --metadata title="$(grep -m 1 -oP '(?<=^# ).*' $dir/index.md | cat)" - #chmod 777 $dir/../output - #sed -i "s/output here/$(sed 's/\//\\\//g' $dir/../output)/g" $dir/tmp.html - #sed "s/sourceCode /language-/g" $dir/tmp.html > $dir/index.html - #rm -f $dir/tmp.html - #sleep 1 - # Can just run these 3 lines if index.html already exists chmod 777 $dir/../output - sed -i "s/output here/$(sed 's/\//\\\//g' $dir/../output)/g" $dir/index.html + sed "s/output here/$(sed 's/\//\\\//g' $dir/../output)/g" $dir/tmp.html >$dir/index.html sleep 1 done diff --git a/site-files/style.css b/site-files/style.css index 1e2e124..7578f61 100644 --- a/site-files/style.css +++ b/site-files/style.css @@ -24,15 +24,6 @@ h3 { line-height: 1.2 } -code { - background: #121212 -} - -pre { - - background: #121212 -} - wrap { word-wrap: break-word } diff --git a/site-files/style.min.css b/site-files/style.min.css index 30514e7..76e5c23 100644 --- a/site-files/style.min.css +++ b/site-files/style.min.css @@ -1 +1 @@ -body{color:#dadada;background:#202020;margin:1em auto;max-width:1000px;padding:0 .62em;font:1.0/1.35 sans-serif;text-align:center}a:link,a:visited{color:#80c47b}a:hover,a:visited:hover{color:#6bb794}h1,h2,h3{line-height:1.2}code{background:#121212}pre{background:#121212}wrap{word-wrap:break-word}@media(max-device-width:1200px){h1{line-height:1.2;font-size:40px}h2{line-height:1.2;font-size:30px}body{font-size:20px}pre,code{font-size:16px}}@media print{body{max-width:none}}footer{text-align:center} \ No newline at end of file +body{color:#dadada;background:#202020;margin:1em auto;max-width:1000px;padding:0 .62em;font:1.0/1.35 sans-serif;text-align:center}a:link,a:visited{color:#80c47b}a:hover,a:visited:hover{color:#6bb794}h1,h2,h3{line-height:1.2}wrap{word-wrap:break-word}@media(max-device-width:1200px){h1{line-height:1.2;font-size:40px}h2{line-height:1.2;font-size:30px}body{font-size:20px}pre,code{font-size:16px}}@media print{body{max-width:none}}footer{text-align:center} \ No newline at end of file diff --git a/site-files/tmp.html b/site-files/tmp.html new file mode 100644 index 0000000..04cdf64 --- /dev/null +++ b/site-files/tmp.html @@ -0,0 +1,34 @@ + + + + + + + F E E D ​ ​ T H E ​ ​ V O I D + + + + +

F E E D ​ ​ T H E ​ ​ V O I + D

+ +
dd if=/dev/zero of=/dev/null status=progress
+
output here
+
+ Useful Linux Tips: Run dd if=/dev/zero of=/dev/null to feed nothing to the void + +
+

+ Witness the void consume zeroes for all eternity +

+ + + +