Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { General struct { Loglevel string `toml:"loglevel"` } `toml:"general"` Features struct { Comments bool `toml:"comments"` Search bool `toml:"search"` Columns bool `toml:"columns"` } `toml:"features"` Server struct { Port int64 `toml:"port"` URL string `toml:"url"` } `toml:"server"` Defaults struct { Author string `toml:"author"` Language string `toml:"language"` Dateformat string `toml:"dateformat"` } `toml:"defaults"` Blog struct { Title string `toml:"title"` Stylesheet string `toml:"stylesheet"` ContentBefore string `toml:"content-before"` ContentAfter string `toml:"content-after"` } `toml:"blog"` Links map[string]string `toml:"links"` }
Config gives structured access to config.toml
type EntryPage ¶
type EntryPage struct { HeaderData Header Title string Author string Created string Updated string Columns bool Contents template.HTML }
EntryPage template data
type Feed ¶
type Feed struct { Title string Lang string URL string Time string Author string Entries []FeedEntry }
Feed template data for atom feed
type FeedEntries ¶
type FeedEntries []FeedEntry
FeedEntries are FeedEntry as a collection that implements sortable
func (FeedEntries) Len ¶
func (p FeedEntries) Len() int
func (FeedEntries) Less ¶
func (p FeedEntries) Less(i, j int) bool
func (FeedEntries) Swap ¶
func (p FeedEntries) Swap(i, j int)
type FeedEntry ¶
type FeedEntry struct { SortDate time.Time Entrytitle string URL string Date string ID string Entrytime string Pubdate string Contents string }
FeedEntry is template data of feed entries
type Header ¶
type Header struct { Lang string Stylesheet string Title string Author string Description string Links []Link Linklen int SearchEnabled bool CustomContent template.HTML }
Header template data
Click to show internal directories.
Click to hide internal directories.