Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Server Server `toml:"server"` Database Database `toml:"database"` PageContext PageContext `toml:"pageContext"` }
Config is a structure containing global website configuration.
See the comments for Server, Database and PageContext for more details.
type Globals ¶
type Globals struct { PageData interface{} PageContext PageContext }
Globals is a structure containing template data.
type PageContext ¶
type PageContext struct { LongName string `toml:"longName"` ShortName string `toml:"shortName"` SiteDescription string `toml:"siteDescription"` URLPrefix string `toml:"urlPrefix"` FullURL string `toml:"fullURL"` MainTwitter string `toml:"mainTwitter"` MainFacebook string `toml:"mainFacebook"` }
PageContext is a structure containing static information to provide to all page templates.
This contains the website's long and short names, as well as a directory of pages for navigation.
Click to show internal directories.
Click to hide internal directories.