aboutsummaryrefslogtreecommitdiff
path: root/build.sh
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 /build.sh
parentf4a38cf2c2a0dbde5f2e3abaa5fd0b0399fc5c11 (diff)
downloadsebastiano.tronto.net-3b82679cf557d2c0e7777f2dbe0a8ece7abf82bb.tar.gz
sebastiano.tronto.net-3b82679cf557d2c0e7777f2dbe0a8ece7abf82bb.zip
Removed date from blog entry, keep it only in filename
Diffstat (limited to 'build.sh')
-rwxr-xr-xbuild.sh2
1 files changed, 1 insertions, 1 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

Generated with cgit - Back to sebastiano.tronto.net