initial commit - added base, need to fix templ errors
This commit is contained in:
22
models/models.go
Normal file
22
models/models.go
Normal file
@@ -0,0 +1,22 @@
|
||||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type Post struct {
|
||||
ID string
|
||||
Title string
|
||||
Slug string
|
||||
Excerpt string
|
||||
Content string
|
||||
Tags []string
|
||||
PublishedAt time.Time
|
||||
WordCount int
|
||||
}
|
||||
|
||||
type Data struct {
|
||||
Title string
|
||||
Subtitle string
|
||||
Posts []Post
|
||||
CurrentPage int
|
||||
TotalPages int
|
||||
}
|
Reference in New Issue
Block a user