From 1197d030237a324ed08dc37775af359cdb53eb9d Mon Sep 17 00:00:00 2001 From: Adam Stück Date: Fri, 9 Aug 2024 13:29:53 +0200 Subject: barf: drop trailing slash from post links --- barf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'barf') diff --git a/barf b/barf index f77512d..098ee07 100755 --- a/barf +++ b/barf @@ -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 "
  • $created$title
  • " done < "$1" | sort -r -- cgit v1.2.3-70-g09d2