diff options
author | Skiz <skiznet@aol.com> | 2024-07-17 20:12:54 -0400 |
---|---|---|
committer | Skiz <skiznet@aol.com> | 2024-07-17 20:12:54 -0400 |
commit | ca9efbcaaaffc5c79af93188c991051ba1c7a42e (patch) | |
tree | 7344195e4064e49cbd27758d51fc6e3573623e73 /themes/schizo/layouts/shortcodes | |
parent | 0d8f1bdee62c8a32e9b2e5dd044c6da9db121b02 (diff) |
Created theme file
Diffstat (limited to 'themes/schizo/layouts/shortcodes')
-rw-r--r-- | themes/schizo/layouts/shortcodes/hidvid.html | 10 | ||||
-rw-r--r-- | themes/schizo/layouts/shortcodes/img.html | 20 | ||||
-rw-r--r-- | themes/schizo/layouts/shortcodes/tagcloud.html | 3 | ||||
-rw-r--r-- | themes/schizo/layouts/shortcodes/vid.html | 6 |
4 files changed, 39 insertions, 0 deletions
diff --git a/themes/schizo/layouts/shortcodes/hidvid.html b/themes/schizo/layouts/shortcodes/hidvid.html new file mode 100644 index 0000000..14f592d --- /dev/null +++ b/themes/schizo/layouts/shortcodes/hidvid.html @@ -0,0 +1,10 @@ +<details> + <summary>Click to reveal video.</summary> +<iframe src="{{ index .Params 0 }}" + loading="lazy" + sandbox="allow-same-origin allow-scripts allow-popups" + allowfullscreen frameborder="0" + class="embvid" + title="Embedded Video"> +</iframe> +</details> diff --git a/themes/schizo/layouts/shortcodes/img.html b/themes/schizo/layouts/shortcodes/img.html new file mode 100644 index 0000000..ff7959b --- /dev/null +++ b/themes/schizo/layouts/shortcodes/img.html @@ -0,0 +1,20 @@ +<!-- + class: class of the figure + link: url the image directs to + alt: alternative text + caption: caption + mouse: what the image says when moused over ("title" in HTML) +--> +<figure {{ with .Get "class" }}class="{{.}}"{{ end -}}> + {{- with .Get "link"}}<a href="{{.}}">{{ end -}} + <img src="{{ .Get "src" }}" + {{- with .Get "mouse" }} title="{{.}}"{{ end -}} + {{- with .Get "alt" }} alt="{{.}}"{{ end -}} + > + {{- if .Get "link"}}</a>{{ end -}} + {{- with .Get "caption" -}} + <figcaption> + {{- . -}} + </figcaption> + {{- end -}} +</figure> diff --git a/themes/schizo/layouts/shortcodes/tagcloud.html b/themes/schizo/layouts/shortcodes/tagcloud.html new file mode 100644 index 0000000..0cf0118 --- /dev/null +++ b/themes/schizo/layouts/shortcodes/tagcloud.html @@ -0,0 +1,3 @@ +{{ if isset .Site.Taxonomies "tags" }}{{ if not (eq (len .Site.Taxonomies.tags) 0) }} <ul id="tagcloud"> + {{ range $name, $items := .Site.Taxonomies.tags }}{{ $url := printf "%s/%s" "tags" ($name | urlize | lower)}}<li><a href="{{ $url | absURL }}" id="tag_{{ $name }}">{{ $name | title }}</a></li> + {{ end }}</ul>{{ end }}{{ end }} diff --git a/themes/schizo/layouts/shortcodes/vid.html b/themes/schizo/layouts/shortcodes/vid.html new file mode 100644 index 0000000..4c612fe --- /dev/null +++ b/themes/schizo/layouts/shortcodes/vid.html @@ -0,0 +1,6 @@ +<iframe src="{{ index .Params 0 }}" + loading="lazy" + sandbox="allow-same-origin allow-scripts allow-popups" + allowfullscreen frameborder="0" + title="Embedded Video"> +</iframe> |