summaryrefslogtreecommitdiffstats
path: root/layouts/_default/single.html
diff options
context:
space:
mode:
authoranoduck <9925396+anoduck@users.noreply.github.com>2025-08-11 18:19:28 -0400
committeranoduck <9925396+anoduck@users.noreply.github.com>2025-08-11 18:19:28 -0400
commit6c7ef74b557b8600e32cddef108f6af946e9de06 (patch)
treeeec126e116012cffd94d4de605f7171d85bba07e /layouts/_default/single.html
parent113d994b2de5d970a94cfd82950540512bd67206 (diff)
fix: wip: revisions for hugo templating sys changesversioned
WIP: Revisions for fixing changes to hugo's templating system upgrade. BREAKING CHANGE: Will not build on versions of hugo prior to 0.145.
Diffstat (limited to 'layouts/_default/single.html')
-rw-r--r--layouts/_default/single.html45
1 files changed, 0 insertions, 45 deletions
diff --git a/layouts/_default/single.html b/layouts/_default/single.html
deleted file mode 100644
index e9a641a..0000000
--- a/layouts/_default/single.html
+++ /dev/null
@@ -1,45 +0,0 @@
-{{ define "main" -}}
- {{- $breakpoint := $.Scratch.Get "breakpoint" -}}
- {{- $hasSidebar := .Site.Params.navigation.sidebar | default true -}}
- {{ $sidebar := "" }}
- {{ if $hasSidebar }}{{ $sidebar = .Render "single/sidebar" }}{{ end }}
- {{ $toc := .Render "single/panel-toc" }}
-
- {{ with $sidebar }}
- <div class="offcanvas offcanvas-start" tabindex="-1" id="offcanvass-sidebar" aria-labelledby="offcanvas-label">
- <div class="offcanvas-header">
- <h5 class="offcanvas-title" id="offcanvas-label">{{ strings.FirstUpper $.Section }}</h5>
- <button type="button" class="btn-close" data-bs-dismiss="offcanvas" aria-label="{{ T "close" }}"></button>
- </div>
- <div class="offcanvas-body">
- {{ . | safeHTML }}
- </div>
- </div>
- {{ end }}
-
- <div class="container-xxl flex-fill p-4 px-xxl-0">
- {{ if $hasSidebar -}}
- <div class="row row-cols-1 row-cols-{{ $breakpoint.current }}-2 row-cols-{{ $breakpoint.next }}-3">
- <div class="col col-{{ $breakpoint.next }}-2 d-none d-{{ $breakpoint.next }}-block sidebar-overflow sticky-top pt-5">
- {{ $sidebar | safeHTML }}
- </div>
- <div class="col-12 col-{{ $breakpoint.current }}-9 col-{{ $breakpoint.next }}-8 mb-5 p-4">
- {{ .Render "single/main" }}
- </div>
- <div class="col col-{{ $breakpoint.current }}-3 col-{{ $breakpoint.next }}-2 d-none d-{{ $breakpoint.current }}-block pt-5">
- {{ $toc | safeHTML }}
- </div>
- </div>
- {{ else }}
- <div class="row row-cols-1 row-cols-{{ $breakpoint.current }}-2">
- <div class="col col-{{ $breakpoint.prev }}-12 col-{{ $breakpoint.current }}-9">
- {{ .Render "single/main" }}
- </div>
- <div class="col col-{{ $breakpoint.current }}-3 d-none d-{{ $breakpoint.current }}-block">
- {{ $toc | safeHTML }}
- </div>
- </div>
- {{ end -}}
- </div>
- {{ template "_internal/disqus.html" . }}
-{{ end -}}