Use content view to customize <title> on author's page

This commit is contained in:
2025-07-04 15:50:38 -05:00
parent 1f9477759d
commit b4bff1e36d
4 changed files with 4 additions and 5 deletions

View File

@ -24,11 +24,7 @@
<link rel="apple-touch-icon" href="{{ . | absURL }}" />
{{ end }}
{{ if .IsHome }}
<title>{{ .Site.Title | plainify }}</title>
{{ else }}
<title>{{ (print .Title " | " .Site.Title) | plainify }}</title>
{{ end }}
<title>{{ .Render "head_title" }}</title>
{{ partial "seo-tags/opengraph.html" . }}
{{ partial "seo-tags/twitter-cards.html" . }}

View File

@ -0,0 +1 @@
{{ (print .Title "'s Posts | " .Site.Title) | plainify }}

1
layouts/head_title.html Normal file
View File

@ -0,0 +1 @@
{{ (print .Title " | " .Site.Title) | plainify }}

View File

@ -0,0 +1 @@
{{ .Site.Title | plainify }}