package models type PublishTargetType int const ( PublishTargetTypeNone PublishTargetType = 0 PublishTargetTypeLocalFS PublishTargetType = 1 PublishTargetTypeNetlify PublishTargetType = 2 ) type Site struct { ID int64 OwnerID int64 Title string Tagline string //Meta SiteMeta //Posts []*Post } type SitePublishTarget struct { ID int64 SiteID int64 BaseURL string TargetType PublishTargetType TargetRef string TargetKey string } /* type SiteMeta struct { Title string `yaml:"title"` Tagline string `yaml:"tagline"` BaseURL string `yaml:"base_url"` } 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 } */