Initial commit

This commit is contained in:
Leon Mika 2026-02-18 22:07:18 +11:00
commit 77d3ff4852
20 changed files with 645 additions and 0 deletions

27
models/sites.go Normal file
View 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
}