owl-blogs/post_types.go

26 lines
273 B
Go
Raw Normal View History

2022-12-05 18:51:42 +00:00
package owl
type Note struct {
Post
}
func (n *Note) TemplateDir() string {
return "note"
}
type Article struct {
Post
}
func (a *Article) TemplateDir() string {
return "article"
}
type Page struct {
Post
}
func (p *Page) TemplateDir() string {
return "page"
}