Remove extra if statement

This commit is contained in:
vimux 2019-08-20 09:23:14 -04:00
parent 2cf17c04e1
commit 07ae2416c1
No known key found for this signature in database
GPG key ID: 5A34FDC4EE832E34

View file

@ -1,8 +1,8 @@
{{ define "main" }} {{ define "main" }}
<main class="main"> <main class="main">
{{- if .Content }} {{- with .Content }}
<div class="page block"> <div class="page block">
{{ with .Content }}<div class="page__content page__content--notitle">{{ . }}</div>{{ end }} <div class="page__content page__content--notitle">{{ . }}</div>
</div> </div>
{{- end }} {{- end }}
{{- $mainSections := .Site.Params.mainSections }} {{- $mainSections := .Site.Params.mainSections }}