summaryrefslogtreecommitdiff
path: root/markdown
diff options
context:
space:
mode:
Diffstat (limited to 'markdown')
-rw-r--r--markdown/markdown.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/markdown/markdown.go b/markdown/markdown.go
index 1d5dbf0..83f94b7 100644
--- a/markdown/markdown.go
+++ b/markdown/markdown.go
@@ -66,12 +66,7 @@ func parseMarkdownFile(basePath, contentPath string) (Content, error) {
return Content{}, fmt.Errorf("failed to parse frontmatter: %v", err)
}
- path := strings.Replace(contentPath, ".md", "", 1)
- if path == "index" {
- path = ""
- }
-
- path = "/" + path
+ path := strings.Replace(contentPath, ".md", ".html", 1)
mc := Content{
Body: string(rest),