File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 6161{{ end }}
6262
6363{{/* Render content blocks */}}
64- {{ partial "bookshop_partial" (slice "page" $blocks) }}
64+ {{ return trim ( partial "bookshop_partial" (slice "page" $blocks)) "\n\r " }}
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ <h5 class="offcanvas-title" id="offcanvas-label">{{ strings.FirstUpper $.Section
1717
1818 {{ $blocks | safeHTML }}
1919
20- {{ if or (not $blocks) (gt (len .RawContent) 0) }}
20+ {{ if (gt (len .RawContent) 0) }}
2121 < div class ="container-xxl flex-fill p-4 px-xxl-0 ">
2222 < div class ="row row-cols-1 row-cols-{{ $breakpoint.current }}-2 row-cols-{{ $breakpoint.next }}-3 ">
2323 < div class ="col col-{{ $breakpoint.next }}-2 d-none d-{{ $breakpoint.next }}-block sidebar-overflow sticky-top pt-5 ">
@@ -35,5 +35,7 @@ <h5 class="offcanvas-title" id="offcanvas-label">{{ strings.FirstUpper $.Section
3535 </ div >
3636 </ div >
3737 </ div >
38+ {{ else if and (not $blocks) (eq (len .RawContent) 0)}}
39+ {{ warnf "Page %q has no content" .RelPermalink }}
3840 {{ end }}
3941{{ end -}}
You can’t perform that action at this time.
0 commit comments