Add post-content only if it exists
This commit is contained in:
parent
162d80071f
commit
b4393b3d6e
2 changed files with 6 additions and 0 deletions
|
|
@ -16,11 +16,13 @@
|
|||
</header>
|
||||
{{- end }}
|
||||
|
||||
{{- if .Content }}
|
||||
<div class="post-content">
|
||||
{{- if not (.Param "disableAnchoredHeadings") }}
|
||||
{{- partial "anchored_headings.html" .Content -}}
|
||||
{{- else }}{{ .Content }}{{ end }}
|
||||
</div>
|
||||
{{- end }}
|
||||
|
||||
{{- $pages := union .RegularPages .Sections }}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue