diff options
author | Adam Stück <adam@adast.dk> | 2024-08-09 13:29:53 +0200 |
---|---|---|
committer | Adam Stück <adam@adast.dk> | 2024-08-09 13:29:53 +0200 |
commit | 1197d030237a324ed08dc37775af359cdb53eb9d (patch) | |
tree | cb51fc9c5c5880309001bb55dfee5d50437fe624 /barf | |
parent | fbcf873c55862b4c16234acd3a681fefad5be0ca (diff) |
barf: drop trailing slash from post links
Diffstat (limited to 'barf')
-rwxr-xr-x | barf | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -39,7 +39,7 @@ index_html() { # Posts while read -r f title created; do - link=$(echo "$f" | sed -E 's|.*/(.*).md|\1/|') + link=$(echo "$f" | sed -E 's|.*/(.*).md|/\1|') created=$(echo $(head -3 "$f" | tail -1)) echo "<li><span>$created</span><a href=\"$link\">$title</a></li>" done < "$1" | sort -r |