diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2022-05-22 12:20:21 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2022-05-22 12:20:21 +0200 |
| commit | 3b82679cf557d2c0e7777f2dbe0a8ece7abf82bb (patch) | |
| tree | 80078a6671b69979724d711deb6aec50af37b301 | |
| parent | f4a38cf2c2a0dbde5f2e3abaa5fd0b0399fc5c11 (diff) | |
| download | sebastiano.tronto.net-3b82679cf557d2c0e7777f2dbe0a8ece7abf82bb.tar.gz sebastiano.tronto.net-3b82679cf557d2c0e7777f2dbe0a8ece7abf82bb.zip | |
Removed date from blog entry, keep it only in filename
| -rwxr-xr-x | build.sh | 2 | ||||
| -rw-r--r-- | src/blog/2022-05-21-blogs/blogs.md | 2 |
2 files changed, 1 insertions, 3 deletions
| @@ -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 | ||
| 3 | 2022-05-21 | ||
| 4 | |||
| 5 | Why would I start a blog in 2022? The short answer is | 3 | Why would I start a blog in 2022? The short answer is |
| 6 | that I have recently enjoyed reading blog posts, and I thought it could be fun | 4 | that I have recently enjoyed reading blog posts, and I thought it could be fun |
| 7 | to write some too. I don't have a good long answer, so I am just going to write | 5 | to write some too. I don't have a good long answer, so I am just going to write |
