aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@noreply.example.com>2022-12-03 01:42:19 -0500
committertdro <tdro@noreply.example.com>2022-12-03 01:42:19 -0500
commitd27acd8bb3bdbfa1c8a70b76592f9c39eed18810 (patch)
treed038335cc60c6839355970c546ad0be6505ba2f1
parent2fe40c752b4272484972f141e406fbcb7fa0cdb8 (diff)
downloadcanory-d27acd8bb3bdbfa1c8a70b76592f9c39eed18810.tar.gz
canory-d27acd8bb3bdbfa1c8a70b76592f9c39eed18810.tar.bz2
canory-d27acd8bb3bdbfa1c8a70b76592f9c39eed18810.zip
themes/default/layouts/partials/video-container.html: Add fetch warning
-rw-r--r--themes/default/layouts/partials/video-container.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/themes/default/layouts/partials/video-container.html b/themes/default/layouts/partials/video-container.html
index 520a16d..caf89d3 100644
--- a/themes/default/layouts/partials/video-container.html
+++ b/themes/default/layouts/partials/video-container.html
@@ -24,13 +24,14 @@
{{- if $notCached -}}
{{- with $remote := resources.GetRemote .Source -}}
{{- with .Err -}}
+ {{- warnf "Video fetch %s" . -}}
{{- if not (fileExists $public) -}}
{{- $caption = "No local video data found for source" -}}
{{- end -}}
{{- else -}}
+ {{- $cache = . | resources.Copy $fileCache -}}
+ {{- $cache = $cache.Permalink -}}
{{- end -}}
- {{- $cache = . | resources.Copy $fileCache -}}
- {{- $cache = $cache.Permalink -}}
{{- else -}}
{{- $caption = "No remote video data found for source" -}}
{{- end -}}