Files
b1tsblog/internal/article/model.go
jbergner b7edfdd544
Some checks failed
release-tag / release-image (push) Failing after 1m48s
v2-Neuerstellung
2026-05-18 11:25:31 +02:00

41 lines
610 B
Go

package article
import (
"html/template"
"time"
)
type Format string
const (
FormatMarkdown Format = "markdown"
FormatHTML Format = "html"
)
type Article struct {
Title string
Slug string
Date time.Time
Cover string
Body template.HTML
Description string
Counter int64
Format Format
SourcePath string
}
type ListPage struct {
Title string
Description string
Articles []Article
}
type StaticPage struct {
Title string
Slug string
Description string
Body template.HTML
Format Format
SourcePath string
}