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