Compare commits

...

4 Commits

Author SHA1 Message Date
Mark Dumay
c4d8507638 Merge pull request #381 from gethinode/develop
Fix spacing for external link icons
2023-08-02 14:55:03 +02:00
Mark Dumay
44d5cfa4de Merge branch 'main' into develop 2023-08-02 14:41:00 +02:00
mark
5aa3cfb80f Bump package version 2023-08-02 14:40:28 +02:00
mark
22b83dbcf9 Fix spacing for external link icons 2023-08-02 14:37:51 +02:00
5 changed files with 6 additions and 6 deletions

View File

@@ -133,7 +133,7 @@
{{- if and $title $cue -}}
{{ $suffix := partial "assets/icon.html" (dict "icon" "fas up-right-from-square fa-2xs") }}
{{- $title = printf "%s %s" $title $suffix | safeHTML -}}
{{- $title = printf "%s %s" $title $suffix | safeHTML -}}
{{- end -}}
{{- end -}}

View File

@@ -61,5 +61,5 @@
{{ end -}}
<span {{ if $isActive }} class="active"{{ end }}>{{ if not $isIcon }}{{ $menu.Name }}{{ end }}</span>
{{- with $menu.Post }}{{ . }}{{ end -}}
{{- if not $isIcon }} {{ $suffix }}{{ end -}}
{{- if not $isIcon }}&nbsp;{{ $suffix }}{{ end -}}
</a>

View File

@@ -34,7 +34,7 @@
{{- if $cue -}}
{{ $suffix := partial "assets/icon.html" (dict "icon" "fas up-right-from-square fa-2xs") }}
{{- $text = printf "%s %s" $text $suffix | safeHTML -}}
{{- $text = printf "%s&nbsp;%s" $text $suffix | safeHTML -}}
{{- end -}}
{{ else }}
{{ $destination = relLangURL $destination }}

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@gethinode/hinode",
"version": "0.17.1",
"version": "0.17.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@gethinode/hinode",
"version": "0.17.1",
"version": "0.17.2",
"license": "MIT",
"devDependencies": {
"@fortawesome/fontawesome-free": "^6.4.0",

View File

@@ -1,6 +1,6 @@
{
"name": "@gethinode/hinode",
"version": "0.17.1",
"version": "0.17.2",
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
"keywords": [
"hugo",