mirror of
https://gitlab.com/EternalWanderer/vugo.git
synced 2025-06-08 06:14:26 +02:00
Initial commit
This commit is contained in:
commit
d703c1bfad
31 changed files with 297 additions and 0 deletions
13
layouts/shortcodes/audio.html
Normal file
13
layouts/shortcodes/audio.html
Normal file
|
@ -0,0 +1,13 @@
|
|||
<!--
|
||||
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)
|
||||
-->
|
||||
<audio controls="true">
|
||||
<source src="{{.Get "src" }}" type="audio/{{.Get "audio" }}">
|
||||
Sorry mate, your browser doesn't support playing audio files.
|
||||
</source>
|
||||
</audio>
|
||||
|
1
layouts/shortcodes/begin-art.html
Normal file
1
layouts/shortcodes/begin-art.html
Normal file
|
@ -0,0 +1 @@
|
|||
<article>
|
1
layouts/shortcodes/end-art.html
Normal file
1
layouts/shortcodes/end-art.html
Normal file
|
@ -0,0 +1 @@
|
|||
</article>
|
10
layouts/shortcodes/hidvid.html
Normal file
10
layouts/shortcodes/hidvid.html
Normal file
|
@ -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>
|
20
layouts/shortcodes/img.html
Normal file
20
layouts/shortcodes/img.html
Normal file
|
@ -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>
|
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) }} <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 }}
|
1
layouts/shortcodes/toc.html
Normal file
1
layouts/shortcodes/toc.html
Normal file
|
@ -0,0 +1 @@
|
|||
{{ .TableOfContents }}
|
6
layouts/shortcodes/vid.html
Normal file
6
layouts/shortcodes/vid.html
Normal file
|
@ -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>
|
Loading…
Add table
Add a link
Reference in a new issue