package main import "github.com/nbd-wtf/go-nostr/nip11" type RelayPageParams struct { HeadParams Info nip11.RelayInformationDocument Hostname string Proxy string LastNotes []EnhancedEvent ModifiedAt string Clients []ClientReference } templ relayTemplate(params RelayPageParams) { Nostr Relay { params.Hostname } - { params.Info.Name } if params.Info.Icon != "" { } if params.Info.Description != "" { } @headCommonTemplate(params.HeadParams) @topTemplate(params.HeadParams)
{ params.Info.Description }
if params.Info.PubKey != "" {
Public Key
{ params.Info.PubKey }
} if params.Info.Contact != "" { }
@clientsTemplate(params.Clients)
@footerTemplate() }