Load index page data as the content

This commit is contained in:
2021-12-03 04:04:46 +01:00
parent ea58971e86
commit 47029b5a4c
2 changed files with 24 additions and 0 deletions
+7
View File
@@ -1,6 +1,13 @@
package content
import (
"code.tokarch.uk/mainnika/nikita-tokarch-uk/frontend/ghost"
)
// Index content data
type Index struct {
_ interface{} `template:"index.go.tmpl"`
ghost.Meta
Pinned []ghost.Post
Posts []ghost.Post
}