diff options
author | tdro <tdro@noreply.example.com> | 2022-07-20 11:51:52 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-07-20 11:51:52 -0400 |
commit | a36e6284b7784f1b565e3dd37af26817842be0c9 (patch) | |
tree | 9fd35ed38591d1e9e5e550573afd4ca81edf08b9 /themes/default/layouts/partials/video-container.html | |
parent | fa5c5c97b0c19ec7d610f65aa467c1125c23bd1a (diff) | |
download | canory-a36e6284b7784f1b565e3dd37af26817842be0c9.tar.gz canory-a36e6284b7784f1b565e3dd37af26817842be0c9.tar.bz2 canory-a36e6284b7784f1b565e3dd37af26817842be0c9.zip |
themes/default/layouts: Ensure permalinks on outgoing assets
RSS feed output adds double subdirectory causing 404s.
Diffstat (limited to 'themes/default/layouts/partials/video-container.html')
-rw-r--r-- | themes/default/layouts/partials/video-container.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/themes/default/layouts/partials/video-container.html b/themes/default/layouts/partials/video-container.html index 3f747e7..d114332 100644 --- a/themes/default/layouts/partials/video-container.html +++ b/themes/default/layouts/partials/video-container.html @@ -16,14 +16,14 @@ {{- else -}} {{- end -}} {{- $cache = . | resources.Copy $fileCache -}} - {{- $cache = $cache.RelPermalink -}} + {{- $cache = $cache.Permalink -}} {{- else -}} {{- $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.RelPermalink -}} + {{- $cache = $cache.Permalink -}} {{- end -}} <video-container> |