Skip to content

Commit 546dcc8

Browse files
froboychalin
authored andcommitted
Only add headings on section pages
1 parent 81acb09 commit 546dcc8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

layouts/blog/baseof.html

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,10 @@
2222
{{ partial "taxonomy_terms_clouds.html" . }}
2323
</aside>
2424
<main class="col-12 col-md-9 col-xl-8 ps-md-5 pe-md-4" role="main">
25+
{{ if .IsSection }}
2526
<h1>{{ .Title }}</h1>
2627
{{ .Content }}
28+
{{ end -}}
2729
{{ with .CurrentSection.OutputFormats.Get "rss" -}}
2830
<a class="td-rss-button" title="RSS" href="{{ .RelPermalink | safeURL }}" target="_blank" rel="noopener">
2931
<i class="fa-solid fa-rss" aria-hidden="true"></i>

0 commit comments

Comments
 (0)