commit 3b82679cf557d2c0e7777f2dbe0a8ece7abf82bb
parent f4a38cf2c2a0dbde5f2e3abaa5fd0b0399fc5c11
Author: Sebastiano Tronto <sebastiano@tronto.net>
Date: Sun, 22 May 2022 12:20:21 +0200
Removed date from blog entry, keep it only in filename
Diffstat:
2 files changed, 1 insertion(+), 3 deletions(-)
diff --git a/build.sh b/build.sh
@@ -51,7 +51,7 @@ makeblog() {
for i in $(ls src/blog | sort -r); do
if [ -d src/blog/$i ]; then
f="src/blog/$i/*.md"
- d=$(grep -E '^[0-9]{4}-[0-9]{2}-[0-9]{2}$' $f)
+ d=$(echo $i | grep -oE '^[0-9]{4}-[0-9]{2}-[0-9]{2}')
t=$(head -n 1 $f | sed 's/# //')
echo "* $d [$t]($i)" >> $bf
diff --git a/src/blog/2022-05-21-blogs/blogs.md b/src/blog/2022-05-21-blogs/blogs.md
@@ -1,7 +1,5 @@
# Blogs
-2022-05-21
-
Why would I start a blog in 2022? The short answer is
that I have recently enjoyed reading blog posts, and I thought it could be fun
to write some too. I don't have a good long answer, so I am just going to write