all repos — homestead @ d9a119ca0abe7ffedd125c81c78f725aab886d29

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),
		),
	)
}