I have created a template single.markdown.md
which is just set up to output the raw markdown content (so I can make a download link):
{{ with .File -}}
{{ with (.Path | readFile) -}}
{{ . -}}
{{ else -}}
{{ errorf "file not found: %s" .Path -}}
{{ end -}}
{{ else -}}
{{ errorf "no file available for markdown template?" -}}
{{ end -}}
This creates a file at, for example, https://bbaovanc.com/blog/swapfile-guide/index.md
. Is there a way I can instead have it output at https://bbaovanc.com/blog/swapfile-guide.md
?