fixed the blog title issue

This commit is contained in:
Chaoming Li 2024-11-21 23:18:07 +11:00
parent 94f4582209
commit 17510254b8

View file

@ -3,6 +3,11 @@
<div class="max-w-7xl mx-auto"> <div class="max-w-7xl mx-auto">
{{ if .IsHome }} {{ if .IsHome }}
<h1 class="text-4xl font-bold mb-8">{{ .Site.Title }}</h1> <h1 class="text-4xl font-bold mb-8">{{ .Site.Title }}</h1>
{{ else if eq .Section "blog" }}
<h1 class="text-4xl font-bold mb-8">{{ .Site.Params.blog.title }}</h1>
{{ with .Site.Params.blog.subtitle }}
<div class="text-xl text-gray-600 mb-8">{{ . }}</div>
{{ end }}
{{ else }} {{ else }}
<h1 class="text-4xl font-bold mb-8">{{ .Title }}</h1> <h1 class="text-4xl font-bold mb-8">{{ .Title }}</h1>
{{ with .Description }} {{ with .Description }}