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}}