From 73b157a0d9ee1fc503c8501df01ae8269e1ef28d Mon Sep 17 00:00:00 2001 From: Mischa POSLAWSKY Date: Sun, 7 Nov 2021 05:40:47 +0100 Subject: [PATCH] index: link scope in git messages to existing page Assumes prefix matches page names. --- index.plp | 1 + 1 file changed, 1 insertion(+) diff --git a/index.plp b/index.plp index 468e927..7377784 100644 --- a/index.plp +++ b/index.plp @@ -35,6 +35,7 @@ if (open my $log, '<', 'UPDATE') {{ EscapeHTML $line; my ($date, $subject) = split /[\t\n]/, $line; $date =~ s/ \K// and $date .= ''; + $subject =~ s{\A(\w+)(?=: )}{showlink($1, -e "$1.plp" && "/$1")}e; say "

Last update: $date $subject

"; }} -- 2.30.0