From 5225628f8a6a64861ab3424e094b13b314f30cdd Mon Sep 17 00:00:00 2001 From: Stephen Searles Date: Sat, 9 Sep 2017 11:27:28 -0500 Subject: [PATCH] adding stuff from theme on the prod website --- theme-additions/archetypes/gallery.md | 16 ++ theme-additions/layouts/gallery/single.html | 15 ++ theme-additions/layouts/partials/gallery.html | 152 ++++++++++++++++++ .../layouts/shortcodes/comments.html | 26 +++ theme-additions/layouts/shortcodes/thumb.html | 8 + 5 files changed, 217 insertions(+) create mode 100644 theme-additions/archetypes/gallery.md create mode 100644 theme-additions/layouts/gallery/single.html create mode 100644 theme-additions/layouts/partials/gallery.html create mode 100644 theme-additions/layouts/shortcodes/comments.html create mode 100644 theme-additions/layouts/shortcodes/thumb.html diff --git a/theme-additions/archetypes/gallery.md b/theme-additions/archetypes/gallery.md new file mode 100644 index 0000000..66c9827 --- /dev/null +++ b/theme-additions/archetypes/gallery.md @@ -0,0 +1,16 @@ ++++ +title = "" +tags = [ + "gallery" +] +categories = [ + "gallery" +] +draft = true + +[photos] +"/media/IMG000.png" = "a great photo" +"/media/IMG003.png" = "" + ++++ + diff --git a/theme-additions/layouts/gallery/single.html b/theme-additions/layouts/gallery/single.html new file mode 100644 index 0000000..e64d680 --- /dev/null +++ b/theme-additions/layouts/gallery/single.html @@ -0,0 +1,15 @@ +{{ partial "head.html" . }} + + +
+ {{ partial "header.html" . }} +
+ {{ partial "gallery.html" . }} + {{ if and (not .Params.nocomment) .Site.Params.disqusShortname }} + {{ template "_internal/disqus.html" . }} + {{ end }} +
+ {{ partial "footer.html" . }} +
+ + diff --git a/theme-additions/layouts/partials/gallery.html b/theme-additions/layouts/partials/gallery.html new file mode 100644 index 0000000..9e4c7df --- /dev/null +++ b/theme-additions/layouts/partials/gallery.html @@ -0,0 +1,152 @@ + +
+
+ {{ if .Title }} +
+

{{ .Title }}

+
+ {{ end }} + +
+ {{ range $i, $_ := .Params.photos }} + {{ $splitnum := split .url "/" | len | add -1}} + {{ $name := index (split .url "/") $splitnum }} + {{ if not $i }} +
+ +
{{ with .caption }}{{ . }}{{ end }}
+
+
+ {{ end }} + +
+ {{ with .alt }}{{ . }}{{ else }}{{ .caption }}{{ end }} +
+ {{ end }} +
+ {{ .Content }} +
+ + + {{ if not .Params.notoc }} + {{ if .TableOfContents }} +
+

Contents

+ {{ .TableOfContents }} +
+ {{ end }} + {{ end }} + + {{ if .Site.Params.SmartToc }} + + + {{ end }} + + + {{ if .Params.tags }} +
+ +
+ {{ end }} +
+ {{ partial "nav.html" . }} +
diff --git a/theme-additions/layouts/shortcodes/comments.html b/theme-additions/layouts/shortcodes/comments.html new file mode 100644 index 0000000..3045116 --- /dev/null +++ b/theme-additions/layouts/shortcodes/comments.html @@ -0,0 +1,26 @@ + +
+ diff --git a/theme-additions/layouts/shortcodes/thumb.html b/theme-additions/layouts/shortcodes/thumb.html new file mode 100644 index 0000000..dd1aa73 --- /dev/null +++ b/theme-additions/layouts/shortcodes/thumb.html @@ -0,0 +1,8 @@ +

+