From 81618e8bb6f00b3b74c30c1cc75a782cf266efd6 Mon Sep 17 00:00:00 2001 From: Benjamin Chausse Date: Tue, 14 Nov 2023 17:14:20 -0500 Subject: initial commit --- themes/cranky/layouts/shortcodes/hidvid.html | 10 +++ themes/cranky/layouts/shortcodes/img.html | 20 +++++ themes/cranky/layouts/shortcodes/prj.html | 116 +++++++++++++++++++++++++ themes/cranky/layouts/shortcodes/tagcloud.html | 3 + themes/cranky/layouts/shortcodes/vid.html | 6 ++ 5 files changed, 155 insertions(+) create mode 100644 themes/cranky/layouts/shortcodes/hidvid.html create mode 100644 themes/cranky/layouts/shortcodes/img.html create mode 100644 themes/cranky/layouts/shortcodes/prj.html create mode 100644 themes/cranky/layouts/shortcodes/tagcloud.html create mode 100644 themes/cranky/layouts/shortcodes/vid.html (limited to 'themes/cranky/layouts/shortcodes') diff --git a/themes/cranky/layouts/shortcodes/hidvid.html b/themes/cranky/layouts/shortcodes/hidvid.html new file mode 100644 index 0000000..14f592d --- /dev/null +++ b/themes/cranky/layouts/shortcodes/hidvid.html @@ -0,0 +1,10 @@ +
+ Click to reveal video. + +
diff --git a/themes/cranky/layouts/shortcodes/img.html b/themes/cranky/layouts/shortcodes/img.html new file mode 100644 index 0000000..ff7959b --- /dev/null +++ b/themes/cranky/layouts/shortcodes/img.html @@ -0,0 +1,20 @@ + +
+ {{- with .Get "link"}}{{ end -}} + {{.}} + {{- if .Get "link"}}{{ end -}} + {{- with .Get "caption" -}} +
+ {{- . -}} +
+ {{- end -}} +
diff --git a/themes/cranky/layouts/shortcodes/prj.html b/themes/cranky/layouts/shortcodes/prj.html new file mode 100644 index 0000000..246a8e1 --- /dev/null +++ b/themes/cranky/layouts/shortcodes/prj.html @@ -0,0 +1,116 @@ +
+ + {{ range first 3 (where .Site.RegularPages "Section" "projects") }} + +

{{ .Title }}

+
+
+
+
+

{{ .Summary | truncate 220 "..." }}

+
+ + {{ end }} +
+More Projects + diff --git a/themes/cranky/layouts/shortcodes/tagcloud.html b/themes/cranky/layouts/shortcodes/tagcloud.html new file mode 100644 index 0000000..0cf0118 --- /dev/null +++ b/themes/cranky/layouts/shortcodes/tagcloud.html @@ -0,0 +1,3 @@ +{{ if isset .Site.Taxonomies "tags" }}{{ if not (eq (len .Site.Taxonomies.tags) 0) }} {{ end }}{{ end }} diff --git a/themes/cranky/layouts/shortcodes/vid.html b/themes/cranky/layouts/shortcodes/vid.html new file mode 100644 index 0000000..4c612fe --- /dev/null +++ b/themes/cranky/layouts/shortcodes/vid.html @@ -0,0 +1,6 @@ + -- cgit v1.2.3