diff options
author | tdro <tdro@noreply.example.com> | 2022-12-03 01:42:19 -0500 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-12-03 01:42:19 -0500 |
commit | d27acd8bb3bdbfa1c8a70b76592f9c39eed18810 (patch) | |
tree | d038335cc60c6839355970c546ad0be6505ba2f1 /themes | |
parent | 2fe40c752b4272484972f141e406fbcb7fa0cdb8 (diff) | |
download | canory-d27acd8bb3bdbfa1c8a70b76592f9c39eed18810.tar.gz canory-d27acd8bb3bdbfa1c8a70b76592f9c39eed18810.tar.bz2 canory-d27acd8bb3bdbfa1c8a70b76592f9c39eed18810.zip |
themes/default/layouts/partials/video-container.html: Add fetch warning
Diffstat (limited to 'themes')
-rw-r--r-- | themes/default/layouts/partials/video-container.html | 5 |
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 -}} |