Documentation
¶
Index ¶
- Variables
- func Error(site SiteSettings, err http.Error) g.Node
- func ExtendAttrs(base Attrs, attrs Attrs) g.Node
- func FormattedDocument(doc g.Node) g.NodeWriter
- func Layout(site SiteSettings, page PageSettings, children ...g.Node) g.NodeWriter
- func MakeWriterTo(file fs.File) io.WriterTo
- func MenuLink(item config.MenuItem) g.Node
- type Attrs
- type FileWriterTo
- type PageSettings
- type SiteSettings
Constants ¶
This section is empty.
Variables ¶
View Source
var Files fs.FS
View Source
var LiveReload = Script(Defer(), g.Raw(`
new EventSource("/_/reload").onmessage = event => {
console.log("got message", event)
window.location.reload()
};
`))
Functions ¶
func FormattedDocument ¶
func FormattedDocument(doc g.Node) g.NodeWriter
func Layout ¶
func Layout(site SiteSettings, page PageSettings, children ...g.Node) g.NodeWriter
Types ¶
type FileWriterTo ¶
type PageSettings ¶
Click to show internal directories.
Click to hide internal directories.