This commit is contained in:
Luke Smith
2022-05-08 22:37:00 -04:00
parent dd78002586
commit e5645601a6
12 changed files with 47 additions and 26 deletions

View File

@@ -4,6 +4,7 @@
loading="lazy"
sandbox="allow-same-origin allow-scripts allow-popups"
allowfullscreen frameborder="0"
class="embvid"
title="Embedded Video">
</iframe>
</details>

View File

@@ -0,0 +1,18 @@
<!-- image -->
<figure {{ with .Get "class" }}class="{{.}}"{{ end }}>
{{ with .Get "link"}}<a href="{{.}}">{{ end }}
<img src="{{ .Get "src" }}" {{ if or (.Get "alt") (.Get "caption") }}alt="{{ with .Get "alt"}}{{.}}{{else}}{{ .Get "caption" }}{{ end }}"{{ end }}{{ with .Get "mouse"}}title="{{.}}"{{end}}/>
{{ if .Get "link"}}</a>{{ end }}
{{ if or (or (.Get "title") (.Get "caption")) (.Get "attr")}}
<figcaption>{{ if isset .Params "title" }}
<h4>{{ .Get "title" }}</h4>{{ end }}
{{ if or (.Get "caption") (.Get "attr")}}<p>
{{ .Get "caption" }}
{{ with .Get "attrlink"}}<a href="{{.}}">{{ end }}
{{ .Get "attr" }}
{{ if .Get "attrlink"}}</a>{{ end }}
</p>{{ end }}
</figcaption>
{{ end }}
</figure>
<!-- image -->

View File

@@ -0,0 +1,3 @@
{{ if isset .Site.Taxonomies "tags" }}{{ if not (eq (len .Site.Taxonomies.tags) 0) }} <div id="tagcloud">
{{ range $name, $items := .Site.Taxonomies.tags }}{{ $url := printf "%s/%s" "tags" ($name | urlize | lower)}}<a href="{{ $url | absURL }}" id="tag_{{ $name }}">{{ $name | title }}</a>
{{ end }}</div>{{ end }}{{ end }}