diff options
author | tdro <tdro@noreply.example.com> | 2022-05-12 02:34:54 -0400 |
---|---|---|
committer | tdro <tdro@noreply.example.com> | 2022-05-12 02:34:54 -0400 |
commit | 49c652502dad290cf304c4613aa9778d3f129f7d (patch) | |
tree | 33d8ae28fbabf8b82ae27988ae78c0f92973c7d2 /themes | |
parent | 20d86839bc6fb9876a20280c8840d5524d949113 (diff) | |
download | canory-49c652502dad290cf304c4613aa9778d3f129f7d.tar.gz canory-49c652502dad290cf304c4613aa9778d3f129f7d.tar.bz2 canory-49c652502dad290cf304c4613aa9778d3f129f7d.zip |
themes/default/layouts/shortcodes/video: Restore truncated slash
Diffstat (limited to 'themes')
-rw-r--r-- | themes/default/layouts/shortcodes/video.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/default/layouts/shortcodes/video.html b/themes/default/layouts/shortcodes/video.html index 306c326..6d62abb 100644 --- a/themes/default/layouts/shortcodes/video.html +++ b/themes/default/layouts/shortcodes/video.html @@ -13,7 +13,7 @@ {{- $start := default "" (.Get "start" | default (.Get 8)) -}} {{- $end := default "" (.Get "end" | default (.Get 9)) -}} -{{- $path := path.Dir $source -}} +{{- $path := replace (path.Dir $source) ":/" "://" 1 -}} {{- $base := split (path.Base $source) "." -}} {{- $name := index (first (sub (len $base) 1) $base) 0 -}} {{- $mime := path.Ext $source -}} |