diff options
| author | alex emery <[email protected]> | 2024-11-03 15:33:28 +0000 |
|---|---|---|
| committer | alex emery <[email protected]> | 2024-11-03 15:33:28 +0000 |
| commit | 508527f52de524a4fd174d386808e314b4138b11 (patch) | |
| tree | 2593af258b67decbf0207e2547b7ea55f6b051d7 /markdown | |
| parent | 22bfae8f9637633d5608caad3ce56b64c6819505 (diff) | |
feat: static builds
Diffstat (limited to 'markdown')
| -rw-r--r-- | markdown/markdown.go | 7 |
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), |
