Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContentFolders ¶
GetContentFolders retrive the dir names from content folder
Types ¶
type Cache ¶
type Cache struct {
// contains filtered or unexported fields
}
Cache holds the site
type ContentCache ¶
type ContentCache map[string]interface{}
ContentCache create a key, page relation
type ImgConfig ¶
ImgConfig holds the configuration for images
func NewImgConfig ¶
NewImgConfig generate new post configuration
type IndexData ¶
type IndexData struct {
HTMLTitle string
PageTitle string
Content template.HTML
Year int
Name string
CanonicalLink string
MetaDescription string
HighlightCSS template.CSS
}
IndexData holds Index page data used by both posts & landingpage
type LandingConfig ¶
type LandingConfig struct {
// contains filtered or unexported fields
}
LandingConfig holds Landing page config
func NewLandingConfig ¶
func NewLandingConfig(posts *PostConfig, templates *template.Template) *LandingConfig
NewLandingConfig initiate the Landing page config
func (*LandingConfig) Get ¶
func (l *LandingConfig) Get(key string) *LandingPage
Get the page from cache
type LandingPage ¶
LandingPage holds the content of the main/index page
type Meta ¶
type Meta struct {
Title string `json:"title"`
Short string `json:"short"`
Date string `json:"date"`
Tags []string `json:"tags"`
Created time.Time
}
Meta holds the post metadata
type PostConfig ¶
type PostConfig struct {
OrderedPosts []*Post
Paths []string
Template *template.Template
Cache *Cache
}
PostConfig holds post config
func NewPostConfig ¶
func NewPostConfig(paths []string, template *template.Template) *PostConfig
NewPostConfig generate new post configuration
Click to show internal directories.
Click to hide internal directories.