From f26f06f197b9f17ec1f9def4e850da50cfbac92f Mon Sep 17 00:00:00 2001 From: magmaus3 Date: Wed, 12 Jul 2023 14:22:18 +0200 Subject: [PATCH] add alt readme file (README.md) --- template.html | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/template.html b/template.html index 08ca7ce..77d7c79 100644 --- a/template.html +++ b/template.html @@ -83,11 +83,17 @@ {{if (not .Req.URL.Query.embed)}} {{ $readmeFilePath := list (placeholder "http.request.uri.path") "README" | join ""}} + {{ $altReadmeFilePath := list (placeholder "http.request.uri.path") "README.md" | join ""}} {{if (fileExists $readmeFilePath )}}
README
{{markdown (include $readmeFilePath)}}
+ {{- else if (fileExists $altReadmeFilePath)}} +
+
README
+ {{markdown (include $altReadmeFilePath)}} +
{{end}} {{end}}