Files
blog/models/models.go

23 lines
330 B
Go

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
}