summaryrefslogtreecommitdiff
path: root/pages
diff options
context:
space:
mode:
authoralex emery <[email protected]>2024-11-03 15:33:28 +0000
committeralex emery <[email protected]>2024-11-03 15:33:28 +0000
commit508527f52de524a4fd174d386808e314b4138b11 (patch)
tree2593af258b67decbf0207e2547b7ea55f6b051d7 /pages
parent22bfae8f9637633d5608caad3ce56b64c6819505 (diff)
feat: static builds
Diffstat (limited to 'pages')
-rw-r--r--pages/pages.go7
1 files changed, 1 insertions, 6 deletions
diff --git a/pages/pages.go b/pages/pages.go
index 7eaf903..8d789b3 100644
--- a/pages/pages.go
+++ b/pages/pages.go
@@ -115,13 +115,8 @@ func Collect(contentPath string) ([]Page, error) {
return nil, fmt.Errorf("failed to build site: %v", err)
}
- path := content.Path
- if path == "index" {
- path = ""
- }
-
pages = append(pages, Page{
- Path: path,
+ Path: content.Path,
Content: page,
})
}