From 508527f52de524a4fd174d386808e314b4138b11 Mon Sep 17 00:00:00 2001 From: alex emery Date: Sun, 3 Nov 2024 15:33:28 +0000 Subject: feat: static builds --- markdown/markdown.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'markdown') 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), -- cgit v1.2.3