Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( TemplateFull = template.Must(templateBase.New("").Parse(layoutTpl)) TemplateCompact = template.Must(templateCompact.New("").Parse(layoutTpl)) )
Functions ¶
Types ¶
type Data ¶
type Data struct { Main string // Optional Style string Title string // defaults to h1 Subtitle string // defaults to h2 Desc string // defaults to subtitle Head string GTM string URL string }
Data holds the metadata to render a given page
type Options ¶
type Options struct { Gtag string CanonicalURL string Manifest string CompactStyle bool CustomCSS string Minify bool Title string // title, h1 Subtitle string // link home, h2 Description string // meta description Content []gomponents.Node }
func NewOptions ¶
func NewOptions(site, title string, content []gomponents.Node) Options
type OptionsFooter ¶
type OptionsFooter struct {}
type Renderer ¶
func NewRenderer ¶
NewRenderer creates a rendered with default options
Directories ¶
Path | Synopsis |
---|---|
picture is a goldmark extension to render images as html picture blocks instead of img tags in a paragraph
|
picture is a goldmark extension to render images as html picture blocks instead of img tags in a paragraph |
webstatic is an filesystem for common static files needed across html pages.
|
webstatic is an filesystem for common static files needed across html pages. |
Click to show internal directories.
Click to hide internal directories.