Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FileServerWithCache ¶
Types ¶
type Application ¶
func NewApplication ¶
func NewApplication(config *Config) (*Application, error)
func (*Application) HandleNotFound ¶
func (a *Application) HandleNotFound(w http.ResponseWriter, r *http.Request)
func (*Application) HandlePageContentRequest ¶
func (a *Application) HandlePageContentRequest(w http.ResponseWriter, r *http.Request)
func (*Application) HandlePageRequest ¶
func (a *Application) HandlePageRequest(w http.ResponseWriter, r *http.Request)
func (*Application) Serve ¶
func (a *Application) Serve() error
type CliOptions ¶
func ParseCliOptions ¶
func ParseCliOptions() (*CliOptions, error)
type Config ¶
type Page ¶
type Page struct { Title string `yaml:"name"` Slug string `yaml:"slug"` ShowMobileHeader bool `yaml:"show-mobile-header"` Columns []Column `yaml:"columns"` // contains filtered or unexported fields }
func (*Page) UpdateOutdatedWidgets ¶
func (p *Page) UpdateOutdatedWidgets()
type Theme ¶
type Theme struct { BackgroundColor *widget.HSLColorField `yaml:"background-color"` PrimaryColor *widget.HSLColorField `yaml:"primary-color"` PositiveColor *widget.HSLColorField `yaml:"positive-color"` NegativeColor *widget.HSLColorField `yaml:"negative-color"` Light bool `yaml:"light"` ContrastMultiplier float32 `yaml:"contrast-multiplier"` TextSaturationMultiplier float32 `yaml:"text-saturation-multiplier"` CustomCSSFile string `yaml:"custom-css-file"` }
Click to show internal directories.
Click to hide internal directories.