Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Info ¶
type Info struct {
// Root leads from the page to the site root: "" for /, "../" for
// /p/:pad, "../../" for /p/:pad/timeslider. URLs are relative to it, so
// the pages work behind a reverse proxy that serves Etherpad under a
// path prefix.
Root string
// Lang and Dir are the page's <html lang> and dir.
Lang string
Dir string
SkinName string
SkinVariants string
EnableDarkMode bool
// Pad marks the pad and timeslider pages: not indexed, no referrer.
Pad bool
}
Info describes a page for Meta.
func (Info) DarkThemeColor ¶
DarkThemeColor is the theme-color on a client in dark mode, "" when dark mode cannot switch on.
func (Info) PrePaintDark ¶
PrePaintDark tells whether the page switches to dark before it paints.
func (Info) ThemeColor ¶
ThemeColor is the light theme-color, "" when the skin's colours are not known.