{{$siteName := (include "/siteName")}} {{$pathParts := splitList "/" .OriginalReq.URL.Path}} {{$markdownFilename := default "index" (slice $pathParts 2 | join "/")}} {{$markdownFilePath := printf "/markdown/%s.md" $markdownFilename}} {{if not (fileExists $markdownFilePath)}}{{httpError 404}}{{end}} {{$markdownFile := (include $markdownFilePath | splitFrontMatter)}} {{$markdownFilename}} - {{$siteName}}
{{markdown $markdownFile.Body}}