owl-blogs/post_types.go

42 lines
491 B
Go
Raw Normal View History

2022-12-05 18:51:42 +00:00
package owl
type Note struct {
2022-12-05 20:09:23 +00:00
GenericPost
2022-12-05 18:51:42 +00:00
}
func (n *Note) TemplateDir() string {
return "note"
}
type Article struct {
2022-12-05 20:09:23 +00:00
GenericPost
2022-12-05 18:51:42 +00:00
}
func (a *Article) TemplateDir() string {
return "article"
}
type Page struct {
2022-12-05 20:09:23 +00:00
GenericPost
2022-12-05 18:51:42 +00:00
}
func (p *Page) TemplateDir() string {
return "page"
}
2022-12-05 19:31:48 +00:00
type Bookmark struct {
2022-12-05 20:09:23 +00:00
GenericPost
2022-12-05 19:31:48 +00:00
}
func (b *Bookmark) TemplateDir() string {
return "bookmark"
}
type Reply struct {
2022-12-05 20:09:23 +00:00
GenericPost
2022-12-05 19:31:48 +00:00
}
func (r *Reply) TemplateDir() string {
return "reply"
}