aboutsummaryrefslogtreecommitdiff
path: root/themes/default/layouts/partials/video-container.html
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-12-22 02:19:54 -0500
committertdro <tdro@noreply.example.com>2022-12-22 02:19:54 -0500
commitf02259a87f5be78ac3611a2341bed83306e94223 (patch)
treed2f80015f7e548a7cd34813f633b2429e64b10df /themes/default/layouts/partials/video-container.html
parentb7acf1be64b6845a0b826a1af4c0db62e70e9aba (diff)
downloadcanory-f02259a87f5be78ac3611a2341bed83306e94223.tar.gz
canory-f02259a87f5be78ac3611a2341bed83306e94223.tar.bz2
canory-f02259a87f5be78ac3611a2341bed83306e94223.zip
themes/default/layouts/shortcodes/video: Add RSS version
Unify other helpers
Diffstat (limited to 'themes/default/layouts/partials/video-container.html')
-rw-r--r--themes/default/layouts/partials/video-container.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/themes/default/layouts/partials/video-container.html b/themes/default/layouts/partials/video-container.html
index caf89d3..bae0cbb 100644
--- a/themes/default/layouts/partials/video-container.html
+++ b/themes/default/layouts/partials/video-container.html
@@ -36,9 +36,10 @@
{{- $caption = "No remote video data found for source" -}}
{{- end -}}
{{- else -}}
- {{- $cache = resources.Get (path.Join "public/" $fileCache) -}}
- {{- $cache = $cache.Content | resources.FromString $fileCache -}}
- {{- $cache = $cache.Permalink -}}
+ {{- with $cache = resources.Get (path.Join "public/" $fileCache) -}}
+ {{- $cache = $cache.Content | resources.FromString $fileCache -}}
+ {{- $cache = $cache.Permalink -}}
+ {{- end -}}
{{- end -}}
{{- $source = $cache -}}