commit 913c82639ee8e4c172e046961ba0cc8f6088680f parent 6ec82432a5ef6854f1149a76e8cb78b77523165f Author: Silas Brack <silasbrack@gmail.com> Date: Tue, 25 Jun 2024 18:37:52 +0200 Added index creation Diffstat:
| A | make_index.sh | | | 1 | + |
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/make_index.sh b/make_index.sh @@ -0,0 +1 @@ +(find posts/* -maxdepth 1 | while read -r file; do echo "<a href=\""$file"\">"$(cat $file | grep -o '<title>.*</title>' | sed 's/\(<title>\|<\/title>\)//g')"</a>"; done) | grep -o '<a href="posts/.*">.\{1,\}</a>' | sed 's/"/\\"/g' | xargs -I '{}' sed -e 's|{{ INDEX }}|{}|g' index_template.html