aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2022-05-22 12:20:21 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2022-05-22 12:20:21 +0200
commit3b82679cf557d2c0e7777f2dbe0a8ece7abf82bb (patch)
tree80078a6671b69979724d711deb6aec50af37b301
parentf4a38cf2c2a0dbde5f2e3abaa5fd0b0399fc5c11 (diff)
downloadsebastiano.tronto.net-3b82679cf557d2c0e7777f2dbe0a8ece7abf82bb.tar.gz
sebastiano.tronto.net-3b82679cf557d2c0e7777f2dbe0a8ece7abf82bb.zip
Removed date from blog entry, keep it only in filename
-rwxr-xr-xbuild.sh2
-rw-r--r--src/blog/2022-05-21-blogs/blogs.md2
2 files changed, 1 insertions, 3 deletions
diff --git a/build.sh b/build.sh
index 8ccb2c8..8167303 100755
--- a/build.sh
+++ b/build.sh
@@ -51,7 +51,7 @@ makeblog() {
51 for i in $(ls src/blog | sort -r); do 51 for i in $(ls src/blog | sort -r); do
52 if [ -d src/blog/$i ]; then 52 if [ -d src/blog/$i ]; then
53 f="src/blog/$i/*.md" 53 f="src/blog/$i/*.md"
54 d=$(grep -E '^[0-9]{4}-[0-9]{2}-[0-9]{2}$' $f) 54 d=$(echo $i | grep -oE '^[0-9]{4}-[0-9]{2}-[0-9]{2}')
55 t=$(head -n 1 $f | sed 's/# //') 55 t=$(head -n 1 $f | sed 's/# //')
56 echo "* $d [$t]($i)" >> $bf 56 echo "* $d [$t]($i)" >> $bf
57 57
diff --git a/src/blog/2022-05-21-blogs/blogs.md b/src/blog/2022-05-21-blogs/blogs.md
index 122d22e..777487b 100644
--- a/src/blog/2022-05-21-blogs/blogs.md
+++ b/src/blog/2022-05-21-blogs/blogs.md
@@ -1,7 +1,5 @@
1# Blogs 1# Blogs
2 2
32022-05-21
4
5Why would I start a blog in 2022? The short answer is 3Why would I start a blog in 2022? The short answer is
6that I have recently enjoyed reading blog posts, and I thought it could be fun 4that I have recently enjoyed reading blog posts, and I thought it could be fun
7to write some too. I don't have a good long answer, so I am just going to write 5to write some too. I don't have a good long answer, so I am just going to write

Generated with cgit - Back to sebastiano.tronto.net