diff --git a/blog-refresh.sh b/blog-refresh.sh index 0109b91..c90e516 100755 --- a/blog-refresh.sh +++ b/blog-refresh.sh @@ -70,7 +70,9 @@ create_entry() { path="$9" outpath="$(basename "$path" .md).html" # convert new markdown posts to html - pandoc -s --css=/css/sakura-vader.css "$path" src/footer/footer.md -t html5 -f markdown -o "dist/$outpath" + pandoc -s --css=/css/sakura-vader.css --template=./pandoc-template-v2.2.1.html5 \ + -V og-url="https://$outpath" \ + src/meta/default.yaml "$path" src/footer/footer.md -t html5 -f markdown -o "dist/$outpath" # then add it to the index title=$(grep -h '' "dist/$outpath" | sed 's/<title>//g;s/<\/title>//g') created=$(grep -h '^date: ' "$path" | sed 's/date: //g')