blog index
+posts & things & various ramblings, probably
+-
+
+
+ {{.title | @html}} + () + +
+
+
diff --git a/buildblog.sh b/buildblog.sh index b584c49..07901d7 100755 --- a/buildblog.sh +++ b/buildblog.sh @@ -38,11 +38,12 @@ find . -name content.djot -print0 | sort -r -z | while read -r -d '' post; do backtoblogroot="$(for ((i=0; i < slashesinpath; i++)); do echo -n '../'; done)" backtoblogroot="${backtoblogroot%/}" jq '.title' "${post}/meta.json" - jq -r --arg path "${post#./*/*/}" "${template}" "${post}/meta.json" >> ./index.html + jq -r --arg path "${post}" "${template}" "${post}/meta.json" >> ./index.html pandoc -f djot -t html5 \ --mathml \ --template="${page_template}" \ --variable="backtoblogroot=${backtoblogroot}" \ + --variable="path=${post#./}" \ --metadata-file="${post}/meta.json" \ "${post}/content.djot" -o "${post}/index.html" done diff --git a/src/blog/2025-09-14-test/content.djot b/src/blog/2025-09-14-test/content.djot index 9241595..7fdc28e 100644 --- a/src/blog/2025-09-14-test/content.djot +++ b/src/blog/2025-09-14-test/content.djot @@ -38,3 +38,5 @@ for (i = 0; i < samplecount; i++) { float sum_space = sum_space_i*sum_space_i + sum_space_q*sum_space_q; /* ... */ ``` + +i promise i'll change this syntax highlighting theme i know it looks bad diff --git a/src/blog/template_index.html b/src/blog/template_index.html index 253f6ab..77f1c07 100644 --- a/src/blog/template_index.html +++ b/src/blog/template_index.html @@ -7,18 +7,30 @@
posts & things & various ramblings, probably
+