all repos — homestead @ 7a7c44a6caec3fd3b5eb655f332450e86b8c4774

Code for my website

domain/content/publisher/templates/index.go (view raw)

package templates

import (
	g "alin.ovh/gomponents"
	. "alin.ovh/gomponents/html"
	base "alin.ovh/homestead/domain/web/templates"
)

type PageSettings struct {
	User string
	base.PageSettings
}

func IndexPage(site base.SiteSettings, page PageSettings) g.Node {
	return Layout(site, page.PageSettings,
		P(
			g.Textf("Hello, %s", page.User),
		),
	)
}