package main // colophonComponent renders the editorial colophon (footer). Subscribe stub, // link list, and ISSN are all optional. The stub is a non-functional stand-in // for this build pass — the spec lists the colophon as a footer with a // subscribe stub, but signup wiring is out of scope. templ colophonComponent(data ColophonData) {
if data.ShowSignup {
} if len(data.Links) > 0 { } if data.ISSN != "" {
{ "ISSN " }{ data.ISSN }
}
} // linkHref returns "#" for empty URLs so the rendered href is always valid. func linkHref(u string) string { if u == "" { return "#" } return u }