Initial commit
This commit is contained in:
commit
77d3ff4852
20 changed files with 645 additions and 0 deletions
27
models/sites.go
Normal file
27
models/sites.go
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
package models
|
||||
|
||||
import "time"
|
||||
|
||||
type Site struct {
|
||||
Meta SiteMeta
|
||||
Posts []*Post
|
||||
}
|
||||
|
||||
type SiteMeta struct {
|
||||
Title string
|
||||
Tagline string
|
||||
BaseURL string
|
||||
}
|
||||
|
||||
type PostMeta struct {
|
||||
ID string `yaml:"id"`
|
||||
Title string `yaml:"title"`
|
||||
Date time.Time `yaml:"date"`
|
||||
Tags []string `yaml:"tags"`
|
||||
Slug string `yaml:"slug"`
|
||||
}
|
||||
|
||||
type Post struct {
|
||||
Meta PostMeta
|
||||
Content string
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue