From d43ab2e37e681e222da93226bcd5211e29e84438 Mon Sep 17 00:00:00 2001 From: anoduck <9925396+anoduck@users.noreply.github.com> Date: Sat, 15 Feb 2025 02:33:34 -0500 Subject: =?UTF-8?q?feat:=20=F0=9F=8E=B8=20Module=20additions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Added created modules to the site along with more content. --- layouts/_default/single.html | 47 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 layouts/_default/single.html (limited to 'layouts/_default/single.html') diff --git a/layouts/_default/single.html b/layouts/_default/single.html new file mode 100644 index 0000000..f14768d --- /dev/null +++ b/layouts/_default/single.html @@ -0,0 +1,47 @@ +{{ 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 }} +
+
+
{{ strings.FirstUpper $.Section }}
+ +
+
+ {{ . | safeHTML }} +
+
+ {{ end }} + +
+ {{ if $hasSidebar -}} +
+ +
+ {{ .Render "single/main" }} +
+
+ {{ $toc | safeHTML }} +
+
+ {{ else }} +
+
+ {{ .Render "single/main" }} +
+
+ {{ $toc | safeHTML }} +
+
+ {{ end -}} +
+ {{ partial "disqus.html" . }} +
+
+{{ end -}} \ No newline at end of file -- cgit v1.2.3