Documentation
¶
Overview ¶
Package webui delivers Space Aurora HTML templates, SVG assets, and responsive stylesheets for the GitVerse platform.
Package webui holds what every page shares: site constants, the layout template, CSS and scripts. cmd/gendocs renders static pages with it; web renders results with it, so the two never drift.
Index ¶
Constants ¶
const ( SiteURL = "https://gitverse.vercel.app/" BasePath = "/" RepoURL = "https://github.com/TheVicky1/GitVerse.git" Install = "go install github.com/TheVicky1/GitVerse/cmd/gitverse@latest" GAMeasurementID = "G-3EEKKGL110" )
Variables ¶
This section is empty.
Functions ¶
func Initials ¶
Initials is the first letter of the first two words, upper-case: "Open Sourcerer" → "OS".
func RenderFragment ¶
RenderFragment executes one named template from result.html or parts.html without the layout.
Types ¶
type Page ¶
type Page struct {
Path, URL, Title, Description, Heading, Content string
NoIndex, NoReferrer bool
Crumbs []Crumb
JSONLD []template.JS
Scripts []string // extra script paths, e.g. "/callback.js"
Data any
}
Page is one rendered page. Content names the template file that defines "content".