diff options
author | tdro <tdro@noreply.example.com> | 2022-06-25 21:44:41 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-06-25 21:44:41 -0400 |
commit | face7b570c5f51fb5f972540a5fc205ebfbca207 (patch) | |
tree | babe2bde81a9df934c10e8757dbdc9e3a0c7a2c8 /themes/default/layouts/shortcodes | |
parent | 6746a1fdc8c5f7571b6061ba3ecf68acb25730d5 (diff) | |
download | canory-face7b570c5f51fb5f972540a5fc205ebfbca207.tar.gz canory-face7b570c5f51fb5f972540a5fc205ebfbca207.tar.bz2 canory-face7b570c5f51fb5f972540a5fc205ebfbca207.zip |
themes/default/layouts/shortcodes/video: Try to not fetch again on cache bust
Use immutable link and check if already fetched.
Diffstat (limited to 'themes/default/layouts/shortcodes')
-rw-r--r-- | themes/default/layouts/shortcodes/imgur-video.html | 9 | ||||
-rw-r--r-- | themes/default/layouts/shortcodes/video.html | 3 |
2 files changed, 7 insertions, 5 deletions
diff --git a/themes/default/layouts/shortcodes/imgur-video.html b/themes/default/layouts/shortcodes/imgur-video.html index a4ed76c..c60cbff 100644 --- a/themes/default/layouts/shortcodes/imgur-video.html +++ b/themes/default/layouts/shortcodes/imgur-video.html @@ -8,9 +8,10 @@ {{- partial "video-container.html" (dict - "Author" .Page.Section - "Caption" $caption - "Options" $options - "Source" (print "https://i.imgur.com/" $id ".mp4") + "Author" .Page.Section + "Caption" $caption + "Options" $options + "RelURL" .Page.RelPermalink + "Source" (print "https://i.imgur.com/" $id ".mp4") ) -}} diff --git a/themes/default/layouts/shortcodes/video.html b/themes/default/layouts/shortcodes/video.html index 9148853..3820db0 100644 --- a/themes/default/layouts/shortcodes/video.html +++ b/themes/default/layouts/shortcodes/video.html @@ -17,11 +17,12 @@ (dict "Author" .Page.Section "Caption" $caption - "Options" $options "End" $end "Height" $height + "Options" $options "Poster" $poster "Preload" $preload + "RelURL" .Page.RelPermalink "Source" $source "Source" $source "Start" $start |