From 0a9518c2e4c5a2a3f09c95e443d7018c0efc8989 Mon Sep 17 00:00:00 2001 From: m455 Date: Wed, 1 Feb 2023 23:26:10 -0500 Subject: [PATCH] Fixed a bug that broke links to files if a readme wasn't present There was a bug that caused a double "html/html" in front of the link URLs for each file listed in the "Files" view. This PR fixes this. It's an ugly fix, because I just replaced "html" with "" as the function argument, but it works? haha. Feel free to do this the proper way, if such a way exists! --- main.scm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.scm b/main.scm index e4f8d8c..1dc934d 100755 --- a/main.scm +++ b/main.scm @@ -367,7 +367,7 @@ (if-let (readme-file (alist-ref 'readme_file template-alist)) (source->sxml readme-file) - (filelist->sxml source-files-list "html")) + (filelist->sxml source-files-list "")) ;; TODO: do we need the full set of template variables defined here? ;; if so maybe this and the set above should be lifted out somewhere `((relative_root . "html/")))