package site

import "time"

// Post is normalized content ready for rendering.
type Post struct {
	Title     string
	Slug      string
	Date      time.Time
	ListTime  time.Time
	SizeBytes int64
	Tags      []string
	Draft     bool
	Hidden    bool
	Source    string
	BodyHTML  string
	URL       string
}

type TagPage struct {
	Name           string
	Slug           string
	URL            string
	Posts          []Post
	LatestListTime time.Time
	Count          int
}

type ArchiveMonth struct {
	Year           int
	Month          int
	URL            string
	Posts          []Post
	LatestListTime time.Time
	Count          int
}

type ArchiveYear struct {
	Year           int
	URL            string
	Posts          []Post
	Months         []ArchiveMonth
	LatestListTime time.Time
	Count          int
}

type StaticFileEntry struct {
	Name      string
	URL       string
	SizeBytes int64
	ModTime   time.Time
}
