mirror of
https://github.com/chaoming/hugo-saasify-theme.git
synced 2025-04-20 03:21:53 +02:00
fixed the blog title issue
This commit is contained in:
parent
94f4582209
commit
17510254b8
1 changed files with 5 additions and 0 deletions
|
@ -3,6 +3,11 @@
|
|||
<div class="max-w-7xl mx-auto">
|
||||
{{ if .IsHome }}
|
||||
<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 }}
|
||||
<h1 class="text-4xl font-bold mb-8">{{ .Title }}</h1>
|
||||
{{ with .Description }}
|
||||
|
|
Loading…
Add table
Reference in a new issue