hlfw.ca

hlfw

Download patch

ref: a7299e86ec8d5de60766281bd8c67de7fd0b0ac7
parent: 6986456bcb2e4f136d59a762af7e707a68201aef
author: halfwit <halfwit@hlfw.ca>
date: Fri Sep 13 01:01:33 PDT 2024

"Fix

--- a/gitrules
+++ b/gitrules
@@ -7,11 +7,11 @@
 /git/([^'/]+)/([^'/]+)/([^'/]+)/files.html	/bin/hlfw/files		/usr/git '\1' '\2' '\3'
 /git/([^'/]+)/([^'/]+)/([^'/]+)/branches.html	/bin/hlfw/branches	/usr/git '\1' '\2' '\3'
 /git/([^'/]+)/([^'/]+)/([^'/]+)/snap.tar.gz	/bin/hlfw/tar		/usr/git '\1' '\2' '\3'
-/git/([^'/]+)/([^'/]+)/([^'/]+)/(([^']+)/)?f.(html|md)	/bin/hlfw/view	/usr/git '\1' '\2' '\3' '\5'
+/git/([^'/]+)/([^'/]+)/([^'/]+)/(([^']+)/)?f.html	/bin/hlfw/view	/usr/git '\1' '\2' '\3' '\5'
 /git/([^'/]+)/([^'/]+)/([^'/]+)/(([^']+)/)?raw	/bin/hlfw/viewraw	/usr/git '\1' '\2' '\3' '\5'
 /git/([^'/]+)/([^'/]+)/([^'/]+)/log.html	/bin/hlfw/log		/usr/git '\1' '\2' '\3'
 /git/([^'/]+)/([^'/]+)/([^'/]+)/commit.html	/bin/hlfw/show		/usr/git '\1' '\2' '\3'
 /git/([^'/]+)/([^'/]+)/([^'/]+)/_patch		/bin/hlfw/patch		/usr/git '\1' '\2' '\3'
 /git/([^'/]+)/([^'/]+)/([^'/]+)/feed.rss	/bin/hlfw/feed		/usr/git '\1' '\2' '\3'
-(/blog/[^']+).html				/bin/hlfw/md2html	/usr/git '\1'
+/blog/([^']+).html				/bin/hlfw/md2html	/usr/git /blog/'\1'
 /index.html					/bin/hlfw/md2html	/usr/git index
--- a/view
+++ b/view
@@ -62,7 +62,7 @@
 	for(f in `$nl{ls}){
 		url=`$nl{echo -n $f/f.html | urlencode}
 		fname=`$nl{echo -n $f | htcat}
-		echo -n '<a href="/git'$url'">'$fname
+		echo -n '<a href="'$url'">'$fname
 		if (test -d $f) echo '/'
 		echo '</a><br/>'
 	}