Merge pull request #997 from gethinode/develop

Fix handling of external links in sidebar
This commit is contained in:
Mark Dumay
2024-06-16 07:56:40 +02:00
committed by GitHub
3 changed files with 8 additions and 4 deletions

View File

@@ -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 }}

4
package-lock.json generated
View File

@@ -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",

View File

@@ -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",