From d27acd8bb3bdbfa1c8a70b76592f9c39eed18810 Mon Sep 17 00:00:00 2001 From: tdro Date: Sat, 3 Dec 2022 01:42:19 -0500 Subject: themes/default/layouts/partials/video-container.html: Add fetch warning --- themes/default/layouts/partials/video-container.html | 5 +++-- 1 file 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 -}} -- cgit v1.2.3