diff --git a/layouts/partials/assets/sidebar.html b/layouts/partials/assets/sidebar.html index 2bef6e89..e59d9615 100644 --- a/layouts/partials/assets/sidebar.html +++ b/layouts/partials/assets/sidebar.html @@ -75,7 +75,11 @@ {{ $href := "" }} {{ with .href }} - {{- $href = (partial "utilities/GetStaticURL" (dict "url" (urls.JoinPath $baseURL .))) -}} + {{ if hasPrefix . "http" }} + {{ $href = . }} + {{ else }} + {{- $href = (partial "utilities/GetStaticURL" (dict "url" (urls.JoinPath $baseURL .))) -}} + {{ end }} {{ else }} {{- $href = partial "utilities/GetStaticURL" (dict "url" (urls.JoinPath $baseURL ($title | urlize))) -}} {{ end }} diff --git a/package-lock.json b/package-lock.json index c12a60cf..c8eb4561 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@gethinode/hinode", - "version": "0.24.3", + "version": "0.24.4", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@gethinode/hinode", - "version": "0.24.3", + "version": "0.24.4", "license": "MIT", "dependencies": { "@fullhuman/postcss-purgecss": "^6.0.0", diff --git a/package.json b/package.json index 545ee6eb..8a3818e6 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@gethinode/hinode", - "version": "0.24.3", + "version": "0.24.4", "description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator", "keywords": [ "hugo",