aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/layouts/utilities
diff options
context:
space:
mode:
authorJean-Pierre Appel <jeanpierre.appel01@gmail.com>2023-12-25 17:17:21 -0500
committerJean-Pierre Appel <jeanpierre.appel01@gmail.com>2023-12-25 17:17:21 -0500
commitcc1220bfd794dff1fc28bd39cafb63c4b1093cf8 (patch)
tree8d51983970fc62457ed97599d784cfa150b5c766 /layouts/utilities
parenta181759e4a108c35fcf6898abbf17f2a424d85dc (diff)
rewrite layouts
Diffstat (limited to 'layouts/utilities')
-rw-r--r--layouts/utilities/list.html17
-rw-r--r--layouts/utilities/single.html18
2 files changed, 35 insertions, 0 deletions
diff --git a/layouts/utilities/list.html b/layouts/utilities/list.html
new file mode 100644
index 0000000..3d4ebe0
--- /dev/null
+++ b/layouts/utilities/list.html
@@ -0,0 +1,17 @@
+{{ define "main" }}
+ {{ .Content }}
+
+ <menu>
+ {{ $cardConfig := dict
+ "fullSummary" false
+ "showMeta" true
+ "showTags" false
+ "showCategories" false
+ }}
+ {{ range .Pages }}
+ {{ .Scratch.Set "cardConfig" $cardConfig }}
+ {{ partial "card.html" . }}
+ {{ end }}
+ </menu>
+
+{{ end }}
diff --git a/layouts/utilities/single.html b/layouts/utilities/single.html
new file mode 100644
index 0000000..7c377f5
--- /dev/null
+++ b/layouts/utilities/single.html
@@ -0,0 +1,18 @@
+{{ define "header" }}
+ <h1>{{ .Title }}</h1>
+ <div class="links-container">
+ {{ with .Params.github }}
+ {{ partial "links/github.html" . }}
+ {{ end }}
+ {{ with .Params.link }}
+ {{ partial "links/link.html" . }}
+ {{ end }}
+ {{ with .Params.site }}
+ {{ partial "links/site.html" . }}
+ {{ end }}
+ </div>
+{{ end }}
+
+{{ define "footer" }}
+ {{ partial "meta-tag_nav.html" . }}
+{{ end }}