From 602523b743973c80bd1d3484ffba5e593dca5e3b Mon Sep 17 00:00:00 2001 From: Jan-Lukas Else Date: Thu, 5 Aug 2021 14:53:22 +0200 Subject: [PATCH] More rendered titles --- activityStreams.go | 2 +- feeds.go | 1 + opensearch.go | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/activityStreams.go b/activityStreams.go index 899a466..6852171 100644 --- a/activityStreams.go +++ b/activityStreams.go @@ -164,7 +164,7 @@ func (a *goBlog) serveActivityStreams(blog string, w http.ResponseWriter, r *htt Type: "Person", ID: a.apIri(b), URL: a.apIri(b), - Name: b.Title, + Name: a.renderMdTitle(b.Title), Summary: b.Description, PreferredUsername: blog, Inbox: a.getFullAddress("/activitypub/inbox/" + blog), diff --git a/feeds.go b/feeds.go index dcc7785..fb52df9 100644 --- a/feeds.go +++ b/feeds.go @@ -24,6 +24,7 @@ func (a *goBlog) generateFeed(blog string, f feedType, w http.ResponseWriter, r if title == "" { title = a.cfg.Blogs[blog].Title } + title = a.renderMdTitle(title) if description == "" { description = a.cfg.Blogs[blog].Description } diff --git a/opensearch.go b/opensearch.go index dfa2ff2..aba6e07 100644 --- a/opensearch.go +++ b/opensearch.go @@ -10,7 +10,7 @@ import ( func (a *goBlog) serveOpenSearch(w http.ResponseWriter, r *http.Request) { blog := r.Context().Value(blogKey).(string) b := a.cfg.Blogs[blog] - title := b.Title + title := a.renderMdTitle(b.Title) sURL := a.getFullAddress(b.getRelativePath(defaultIfEmpty(b.Search.Path, defaultSearchPath))) xml := fmt.Sprintf(""+ "%s%s"+