diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-09-28 09:34:46 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-09-28 09:34:46 +0200 |
| commit | aa42ae52f6d5fc32727ab4c8a9d8375f9247e7c8 (patch) | |
| tree | 222ae7cc52bf8395d44324bb829e2686acde10d8 /build.sh | |
| parent | b55c05b91316f2054b3046794799e7eaa5ffcd8d (diff) | |
| parent | c192f8cde924377ffe4085a80f2baeb525658af1 (diff) | |
| download | sebastiano.tronto.net-aa42ae52f6d5fc32727ab4c8a9d8375f9247e7c8.tar.gz sebastiano.tronto.net-aa42ae52f6d5fc32727ab4c8a9d8375f9247e7c8.zip | |
Merge branch 'master' of tronto.net:sebastiano.tronto.net
Diffstat (limited to 'build.sh')
| -rwxr-xr-x | build.sh | 5 |
1 files changed, 3 insertions, 2 deletions
| @@ -22,7 +22,8 @@ copyfile() { | |||
| 22 | md) | 22 | md) |
| 23 | t="$(markdowntitle "$file")" | 23 | t="$(markdowntitle "$file")" |
| 24 | sed "s/TITLE/$t/" < top.html > "$ind" | 24 | sed "s/TITLE/$t/" < top.html > "$ind" |
| 25 | lowdown "$file" >> "$ind" | 25 | lowdown --html-no-skiphtml --html-no-escapehtml \ |
| 26 | "$file" >> "$ind" | ||
| 26 | cat bottom.html >> "$ind" | 27 | cat bottom.html >> "$ind" |
| 27 | ;; | 28 | ;; |
| 28 | html) | 29 | html) |
| @@ -64,7 +65,7 @@ makeblogindexandfeed() { | |||
| 64 | 65 | ||
| 65 | f="src/blog/$i/*.md" | 66 | f="src/blog/$i/*.md" |
| 66 | d="$(echo "$i" | grep -oE '^[0-9]{4}-[0-9]{2}-[0-9]{2}')" | 67 | d="$(echo "$i" | grep -oE '^[0-9]{4}-[0-9]{2}-[0-9]{2}')" |
| 67 | t="$(head -n 1 $f | sed 's/# //')" | 68 | t="$(markdowntitle $f)" |
| 68 | link="https://sebastiano.tronto.net/blog/$i" | 69 | link="https://sebastiano.tronto.net/blog/$i" |
| 69 | 70 | ||
| 70 | thisyear="$(echo "$d" | sed 's/-.*//')" | 71 | thisyear="$(echo "$d" | sed 's/-.*//')" |
