stuff
This commit is contained in:
@@ -4,6 +4,7 @@
|
||||
loading="lazy"
|
||||
sandbox="allow-same-origin allow-scripts allow-popups"
|
||||
allowfullscreen frameborder="0"
|
||||
class="embvid"
|
||||
title="Embedded Video">
|
||||
</iframe>
|
||||
</details>
|
||||
|
18
layouts/shortcodes/img.html
Normal file
18
layouts/shortcodes/img.html
Normal 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 -->
|
3
layouts/shortcodes/tagcloud.html
Normal file
3
layouts/shortcodes/tagcloud.html
Normal 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 }}
|
Reference in New Issue
Block a user