All checks were successful
release-tag / release-image (push) Successful in 2m9s
24 lines
346 B
Go
24 lines
346 B
Go
// internal/article/model.go
|
|
package article
|
|
|
|
import (
|
|
"html/template"
|
|
"time"
|
|
)
|
|
|
|
type Article struct {
|
|
Title string
|
|
Slug string
|
|
Date time.Time
|
|
Cover string
|
|
Body template.HTML
|
|
Description string
|
|
Counter string
|
|
}
|
|
|
|
type ListPage struct {
|
|
Title string
|
|
Description string
|
|
Articles []Article
|
|
}
|