diff --git a/themes/hugo-theme-pdf-js/layouts/shortcodes/embed-pdf-view.html b/themes/hugo-theme-pdf-js/layouts/shortcodes/embed-pdf-view.html index 891fa0b12238324d9cd292d00cc4b097c3b4f06d..ae53dc10fd49c2b54969520084c83eb38bee57c7 100644 --- a/themes/hugo-theme-pdf-js/layouts/shortcodes/embed-pdf-view.html +++ b/themes/hugo-theme-pdf-js/layouts/shortcodes/embed-pdf-view.html @@ -3,13 +3,23 @@
-{{ $url1 := .Get "url" | path.Join .Site.BaseURL }} +{{ $url := .Get "url" }} +{{ $base_url := .Site.BaseURL | urls.Parse}} +{{ $base_path := $base_url.Path}} +{{ $url_pdf := path.Join $base_path $url}} + +