commit a67d2d53d37a516f24066c024292ab6703cc4498
parent 914497b82cab9a0f37952821f5607c080cfb0b99
Author: Jack Mordaunt <jackmordaunt.dev@gmail.com>
Date: Fri, 11 Jul 2025 11:38:08 -0300
hugo-coder/layouts/partials/page.html: ignore empty title
No point spitting out an empty h1.
Diffstat:
1 file changed, 2 insertions(+), 0 deletions(-)
diff --git a/themes/hugo-coder/layouts/partials/page.html b/themes/hugo-coder/layouts/partials/page.html
@@ -1,11 +1,13 @@
<section class="container page">
<article>
<header>
+ {{ if .Title }}
<h1 class="title">
<a class="title-link" href="{{ .Permalink | safeURL }}">
{{ .Title }}
</a>
</h1>
+ {{ end }}
</header>
{{ .Content }}