aboutsummaryrefslogtreecommitdiff
path: root/barf
diff options
context:
space:
mode:
Diffstat (limited to 'barf')
-rwxr-xr-xbarf2
1 files changed, 1 insertions, 1 deletions
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 "<li><span>$created</span><a href=\"$link\">$title</a></li>"
done < "$1" | sort -r