From b1326108612347433b986811783a46f61271be9a Mon Sep 17 00:00:00 2001 From: yyexplore Date: Tue, 3 Nov 2020 20:23:33 +0800 Subject: [PATCH] path.Join .Site.BaseURL --- .../hugo-theme-pdf-js/layouts/shortcodes/embed-pdf-view.html | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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 21ea1c4..4822529 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,8 +3,7 @@
-{{ $url1 := .Get "url" }} - +{{ $url1 := .Get "url" | path.Join .Site.BaseURL}}