Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DownloadCss ¶ added in v0.0.4
Types ¶
type LpConfig ¶
type LpConfig struct { Lpconfig struct { RootDir string `yaml:"rootDir"` Port int `yaml:"port"` Sitename string `yaml:"sitename"` Tls struct { Key string `yaml:"key"` Cert string `yaml:"cert"` Ca string `yaml:"ca"` } `yaml:"tls"` } `yaml:"lpconfig"` // contains filtered or unexported fields }
LpConfig set config for site hosting
type SiteData ¶
type SiteData struct { Template struct { Theme string `yaml:"Theme,omitempty"` Pages []struct { IsIndex bool `yaml:"IsIndex,omitempty"` Name string `yaml:"Name"` Headings []struct { Name string `yaml:"Name"` Links []struct { Name string `yaml:"Name"` Url string `yaml:"Url,omitempty"` Urls []map[string]string `yaml:"Urls,omitempty"` } `yaml:"Links"` } `yaml:"Headings"` } `yaml:"Pages"` } `yaml:"Template"` }
SiteData is the meat and potatoes of LP. Used to create html page of links.
Click to show internal directories.
Click to hide internal directories.