Add Photo Gallery ShortCut

This commit is contained in:
2022-04-20 16:50:33 +02:00
parent dd4507c338
commit 5a419fd465
9 changed files with 395 additions and 10 deletions

View File

@@ -1,4 +1,6 @@
<video controls width="100%" preload="{{ .Get "preload" | default "metadata" }}">
<source src="{{ . | relURL }}" type="video/mp4">
{{ with .Get "src" }}<source src="{{ . | relURL }}" type="video/mp4">{{ end }}
</video>
<figure {{ with .Get "class" }}class="{{ . }}"{{ end }}>
<video controls width="100%" preload="{{ .Get "preload" | default "metadata" }}">
<source src="{{ . | relURL }}" type="video/mp4">
{{ with .Get "src" }}<source src="{{ . | relURL }}" type="video/mp4">{{ end }}
</video>
</figure>