diff --git a/calendar_event.templ b/calendar_event.templ new file mode 100644 index 0000000..71a8830 --- /dev/null +++ b/calendar_event.templ @@ -0,0 +1,27 @@ +package main + +templ calendarEventTemplate(params CalendarPageParams) { + + @eventPageTemplate( + "Calendar Event: " + params.CalendarEvent.Title, + params.OpenGraphParams, + params.HeadParams, + params.Metadata, + params.Clients, + params.Details, + params.Event, + ) { +

+ { params.CalendarEvent.Title } +

+
+ +
+ for _, v := range params.CalendarEvent.Hashtags { + + { v } + + } +
+ } +} diff --git a/clients.go b/clients.go index 0f439e9..1ea79f7 100644 --- a/clients.go +++ b/clients.go @@ -28,6 +28,7 @@ var ( zapStream = ClientReference{ID: "zap.stream", Name: "zap.stream", Base: "https://zap.stream/{code}", Platform: "web"} nostrrr = ClientReference{ID: "nostrrr", Name: "Nostrrr", Base: "https://nostrrr.com/relay/{code}", Platform: "web"} + flockstr = ClientReference{ID: "flockstr", Name: "Flockstr", Base: "https://www.flockstr.com/event/{code}", Platform: "web"} yakihonne = ClientReference{ID: "yakihonne", Name: "YakiHonne", Base: "https://yakihonne.com/article/{code}", Platform: "web"} habla = ClientReference{ID: "habla", Name: "Habla", Base: "https://habla.news/a/{code}", Platform: "web"} @@ -90,6 +91,12 @@ func generateClientList(kind int, code string, withModifiers ...func(string) str zapStream, nostrudel, amethyst, } + case 31922, 31923: + clients = []ClientReference{ + native, + flockstr, nostrudel, + amethyst, + } default: clients = []ClientReference{ native, diff --git a/common.templ b/common.templ index 5d3677e..defbb96 100644 --- a/common.templ +++ b/common.templ @@ -1,5 +1,38 @@ package main +templ headCommonTemplate(params HeadParams) { + + if params.Oembed != "" { + + + } + if params.IsProfile { + + + + } else { + + + + } + + if tailwindDebugStuff != "" { + @templ.Raw(tailwindDebugStuff) + } else { + + } + + + if params.NaddrNaked != "" { + + } else { + + } + +} + templ authorHeaderTemplate(metadata Metadata) {
@@ -9,7 +42,6 @@ templ authorHeaderTemplate(metadata Metadata) {
{ metadata.Name } - if metadata.Name != metadata.DisplayName { / { metadata.DisplayName } } @@ -24,29 +56,18 @@ templ authorHeaderTemplate(metadata Metadata) { templ lastNotesTemplate(lastNotes []EnhancedEvent) {