diff options
author | tdro <tdro@noreply.example.com> | 2022-06-25 22:55:42 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-06-25 22:55:42 -0400 |
commit | 13d8c73a9e3e76b3fbb1493ad6f304ba258a2aa3 (patch) | |
tree | 0f8df1742493d581f6c9cc32228b2e1f1d32cde1 /themes/default/layouts/partials/video-container.html | |
parent | fbeb2a9c1fecf8b0ac2347645dfcae2bb64706c4 (diff) | |
download | canory-13d8c73a9e3e76b3fbb1493ad6f304ba258a2aa3.tar.gz canory-13d8c73a9e3e76b3fbb1493ad6f304ba258a2aa3.tar.bz2 canory-13d8c73a9e3e76b3fbb1493ad6f304ba258a2aa3.zip |
themes/default/layouts/shortcodes/video: Rename from Slug to RelURL at interface
Diffstat (limited to 'themes/default/layouts/partials/video-container.html')
-rw-r--r-- | themes/default/layouts/partials/video-container.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/default/layouts/partials/video-container.html b/themes/default/layouts/partials/video-container.html index 73bbfad..79df910 100644 --- a/themes/default/layouts/partials/video-container.html +++ b/themes/default/layouts/partials/video-container.html @@ -2,7 +2,7 @@ {{- $caption := .Caption -}} {{- $public := print "public/" .Source -}} {{- $timestamp := print "#t=" .Start "," .End -}} -{{- $immutable := print (.Slug | humanize | urlize) "-" (.Source | sha256 | truncate 8 "") -}} +{{- $immutable := print (.RelURL | humanize | urlize) "-" (.Source | sha256 | truncate 8 "") -}} {{- $extension := path.Ext .Source -}} {{- $fileCache := print $.Author "/media/" $immutable $extension -}} |