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 /pages/pages.go | |
| parent | 22bfae8f9637633d5608caad3ce56b64c6819505 (diff) | |
feat: static builds
Diffstat (limited to 'pages/pages.go')
| -rw-r--r-- | pages/pages.go | 7 |
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, }) } |
