From 741ddd580538b0c6e8d8c19d31bf67e2e508c510 Mon Sep 17 00:00:00 2001 From: logikonline Date: Sun, 15 Mar 2026 23:57:46 -0400 Subject: [PATCH] fix(pages): use DisplayName instead of Name for blog authors Replace .Author.Name with .Author.DisplayName in all page templates to show the user's display name instead of username for blog post authors. Affects all four landing page templates (bold-marketing, minimalist-docs, open-source-hero, saas-conversion). Consistent with user display name conventions elsewhere in the application. --- templates/pages/bold-marketing.tmpl | 6 +++--- templates/pages/minimalist-docs.tmpl | 6 +++--- templates/pages/open-source-hero.tmpl | 6 +++--- templates/pages/saas-conversion.tmpl | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/templates/pages/bold-marketing.tmpl b/templates/pages/bold-marketing.tmpl index fb53f8f2df..fb4a3667df 100644 --- a/templates/pages/bold-marketing.tmpl +++ b/templates/pages/bold-marketing.tmpl @@ -1196,7 +1196,7 @@

{{.BlogPost.Title}}

{{if .BlogPost.Subtitle}}

{{.BlogPost.Subtitle}}

{{end}}
- {{if .BlogPost.Author}}{{.BlogPost.Author.Name}}·{{end}} + {{if .BlogPost.Author}}{{.BlogPost.Author.DisplayName}}·{{end}} {{DateUtils.AbsoluteShort .BlogPost.CreatedUnix}} {{if .BlogTags}}·{{range .BlogTags}}{{.}} {{end}}{{end}}
@@ -1231,7 +1231,7 @@

{{.Title}}

{{if and $.Config.Blog.ShowExcerpt .Subtitle}}{{.Subtitle}} · {{end}} - {{if .Author}}{{.Author.Name}} · {{end}}{{DateUtils.AbsoluteShort .CreatedUnix}} + {{if .Author}}{{.Author.DisplayName}} · {{end}}{{DateUtils.AbsoluteShort .CreatedUnix}}

@@ -1467,7 +1467,7 @@ {{end}}
{{.Title}}
- {{if and $.Config.Blog.ShowExcerpt .Subtitle}}{{.Subtitle}}{{else}}{{if .Author}}{{.Author.Name}}{{end}} · {{DateUtils.AbsoluteShort .CreatedUnix}}{{end}} + {{if and $.Config.Blog.ShowExcerpt .Subtitle}}{{.Subtitle}}{{else}}{{if .Author}}{{.Author.DisplayName}}{{end}} · {{DateUtils.AbsoluteShort .CreatedUnix}}{{end}}
{{end}} diff --git a/templates/pages/minimalist-docs.tmpl b/templates/pages/minimalist-docs.tmpl index f0dc0ff6fe..3f9b7a6229 100644 --- a/templates/pages/minimalist-docs.tmpl +++ b/templates/pages/minimalist-docs.tmpl @@ -1058,7 +1058,7 @@

{{.BlogPost.Title}}

{{if .BlogPost.Subtitle}}

{{.BlogPost.Subtitle}}

{{end}}
- {{if .BlogPost.Author}}{{.BlogPost.Author.Name}}·{{end}} + {{if .BlogPost.Author}}{{.BlogPost.Author.DisplayName}}·{{end}} {{DateUtils.AbsoluteShort .BlogPost.CreatedUnix}} {{if .BlogTags}}·{{range .BlogTags}}{{.}} {{end}}{{end}}
@@ -1095,7 +1095,7 @@

{{.Subtitle}}

{{end}}
- {{if .Author}}{{.Author.Name}} · {{end}}{{DateUtils.AbsoluteShort .CreatedUnix}} + {{if .Author}}{{.Author.DisplayName}} · {{end}}{{DateUtils.AbsoluteShort .CreatedUnix}}
@@ -1341,7 +1341,7 @@
{{.Subtitle}}
{{end}}
- {{if .Author}}{{.Author.Name}}{{end}} · {{DateUtils.AbsoluteShort .CreatedUnix}} + {{if .Author}}{{.Author.DisplayName}}{{end}} · {{DateUtils.AbsoluteShort .CreatedUnix}}
diff --git a/templates/pages/open-source-hero.tmpl b/templates/pages/open-source-hero.tmpl index a8ae001c71..da715f42b4 100644 --- a/templates/pages/open-source-hero.tmpl +++ b/templates/pages/open-source-hero.tmpl @@ -1031,7 +1031,7 @@

{{.BlogPost.Title}}

{{if .BlogPost.Subtitle}}

{{.BlogPost.Subtitle}}

{{end}}
- {{if .BlogPost.Author}}{{.BlogPost.Author.Name}}·{{end}} + {{if .BlogPost.Author}}{{.BlogPost.Author.DisplayName}}·{{end}} {{DateUtils.AbsoluteShort .BlogPost.CreatedUnix}} {{if .BlogTags}}·{{range .BlogTags}}{{.}} {{end}}{{end}}
@@ -1067,7 +1067,7 @@

{{.Subtitle}}

{{end}}
- {{if .Author}}{{.Author.Name}} · {{end}}{{DateUtils.AbsoluteShort .CreatedUnix}} + {{if .Author}}{{.Author.DisplayName}} · {{end}}{{DateUtils.AbsoluteShort .CreatedUnix}}
{{end}} @@ -1336,7 +1336,7 @@

{{.Subtitle}}

{{end}}
- {{if .Author}}{{.Author.Name}}{{end}} · {{DateUtils.AbsoluteShort .CreatedUnix}} + {{if .Author}}{{.Author.DisplayName}}{{end}} · {{DateUtils.AbsoluteShort .CreatedUnix}}
{{end}} diff --git a/templates/pages/saas-conversion.tmpl b/templates/pages/saas-conversion.tmpl index 599dc71b5b..d02bc6039d 100644 --- a/templates/pages/saas-conversion.tmpl +++ b/templates/pages/saas-conversion.tmpl @@ -1169,7 +1169,7 @@

{{.BlogPost.Title}}

{{if .BlogPost.Subtitle}}

{{.BlogPost.Subtitle}}

{{end}}
- {{if .BlogPost.Author}}{{.BlogPost.Author.Name}}·{{end}} + {{if .BlogPost.Author}}{{.BlogPost.Author.DisplayName}}·{{end}} {{DateUtils.AbsoluteShort .BlogPost.CreatedUnix}} {{if .BlogTags}}·{{range .BlogTags}}{{.}} {{end}}{{end}}
@@ -1205,7 +1205,7 @@

{{.Subtitle}}

{{end}}
- {{if .Author}}{{.Author.Name}} · {{end}}{{DateUtils.AbsoluteShort .CreatedUnix}} + {{if .Author}}{{.Author.DisplayName}} · {{end}}{{DateUtils.AbsoluteShort .CreatedUnix}}
{{end}} @@ -1476,7 +1476,7 @@

{{.Subtitle}}

{{end}}
- {{if .Author}}{{.Author.Name}}{{end}} · {{DateUtils.AbsoluteShort .CreatedUnix}} + {{if .Author}}{{.Author.DisplayName}}{{end}} · {{DateUtils.AbsoluteShort .CreatedUnix}}
{{end}}