Skip to content

Commit

Permalink
replace float -> allign, remove type variable with fix mp4
Browse files Browse the repository at this point in the history
  • Loading branch information
Gordolin committed Dec 3, 2024
1 parent 9b1fc03 commit eec9e99
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
17 changes: 13 additions & 4 deletions layouts/shortcodes/my_video.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,18 @@
z-index bringt das Video in den Vordergrund, damit
es nicht von anderen Elementen überlagert wird
-->
<div class="my-video my-video-{{.Get "float"}}" style="width:{{.Get "width"}};">
<video controls style="width: 100%;" poster="{{.Get "poster"}}">
<source src={{.Get "src"}} type="video/{{.Get "videotype"}}">
</video>
<div
class="my-video my-video-{{.Get "allign"}}"
style="width:{{.Get "width"}};">
<video controls
style="width: 100%;"
poster="{{.Get "poster"}}">
<source
src={{.Get "src"}}
type="video/mp4">
</video>
</div>

{{ if eq (.Get "allign") "col" }}
<hr />
{{ end }}
14 changes: 10 additions & 4 deletions layouts/shortcodes/my_videobox.html
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
<!-- Video mit einer Videounterschrift in einer Box -->

<div class="my-videobox my-videobox-{{.Get "float"}}" style="width:{{.Get "width"}};">
<video controls style="width: 100%;" poster="{{.Get "poster"}}">
<source src={{.Get "src"}} type="video/{{.Get "videotype"}}">
<div
class="my-videobox my-videobox-{{.Get "allign"}}"
style="width:{{.Get "width"}};">
<video controls
style="width: 100%;"
poster="{{.Get "poster"}}">
<source
src={{.Get "src"}}
type="video/mp4">
</video>
<div class="my-videobox-text">
{{ .Inner | markdownify }}
{{ .Inner | markdownify }}
</div>
</div>

Expand Down

0 comments on commit eec9e99

Please sign in to comment.