2 Commits

Author SHA1 Message Date
b4bff1e36d Use content view to customize <title> on author's page 2025-07-04 15:50:38 -05:00
1f9477759d Revert "debug: Show current template filename in bottom right"
This reverts commit ff4998f31b.

Not that useful. In the future, probably need to make an entire like
debug menu with a bunch of info about the current page rendering and a
bunch of variables.
2025-07-04 15:35:58 -05:00
5 changed files with 4 additions and 11 deletions

View File

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

View File

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

View File

@ -8,12 +8,6 @@
{{ partial "top.html" . }} {{ partial "top.html" . }}
{{ if hugo.IsServer -}}
<div style="position: fixed; bottom: 25px; right: 25px;">
{{ templates.Current.Name }}
</div>
{{ end -}}
<div class="main-container"> <div class="main-container">
{{ if not .IsHome }} {{ if not .IsHome }}
{{ partial "breadcrumb.html" . }} {{ partial "breadcrumb.html" . }}

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 }}