diff --git a/config.toml b/config.toml index e0e17319c59aa262b031bd215a9f56368ffc32f9..f1ece993002f6ecd7c1c490e261e2204444a8d8f 100644 --- a/config.toml +++ b/config.toml @@ -3,7 +3,7 @@ baseURL = "http://root.gitcode.host/1024/" languageCode = "zh" title = "1024大会PPT集锦" theme = ["hugo-theme-learn", "hugo-theme-pdf-js"] -canonifyURLs = true +#canonifyURLs = true #uglyurls = true [[menu.shortcuts]] diff --git a/layouts/partials/custom-header.html b/layouts/partials/custom-header.html new file mode 100644 index 0000000000000000000000000000000000000000..648ea34afa598a7bb8249f9f688b312907a860a3 --- /dev/null +++ b/layouts/partials/custom-header.html @@ -0,0 +1,2 @@ + + \ No newline at end of file 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 4822529f901dd084a018806ff118b042c3894b73..1c352295e82cc0ac9964f316bbb6f510a0ee32d9 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,7 +3,9 @@
-{{ $url1 := .Get "url" | path.Join .Site.BaseURL}} + + +{{ $url1 := .Get "url" | path.Join .Site.BaseURL }}