diff options
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/-.*//')" |
