my website
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

minor screwup: sort -z

chfour 4ad7bf12 c312c875

+1 -1
+1 -1
buildblog.sh
··· 12 12 template="$(sed "/\s*${template_start}/,/\s*${template_end}/!d;//d" ./index_template.html | \ 13 13 jq -Rs '"\"" + (gsub("(?<s>^|}})(?<p>.+?)(?<e>{{|$)"; "\(.s + (.p|@json|trimstr("\"")) + .e)"; "m") | rtrim | gsub("{{(?<p>.+?)}}"; "\\(\(.p))"; "m")) + "\""' -r)" 14 14 15 - find . -name content.djot -print0 | sort -r | while read -r -d '' post; do 15 + find . -name content.djot -print0 | sort -r -z | while read -r -d '' post; do 16 16 post="${post%/*}" 17 17 echo -n "${post} " 18 18 jq -r '.title' "${post}/meta.json"