Skip to content

Commit a472ff8

Browse files
authored
Merge branch 'main' into hugo-mod-dependencies
2 parents 71adde9 + 7d724db commit a472ff8

File tree

5 files changed

+14
-4
lines changed

5 files changed

+14
-4
lines changed

exampleSite/hugo_stats.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@
207207
"fa-2xs",
208208
"fa-4x",
209209
"fa-activity",
210+
"fa-angle-left",
210211
"fa-arrow-left",
211212
"fa-arrow-right",
212213
"fa-bootstrap",

hugo_stats.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,13 +63,16 @@
6363
"d-inline",
6464
"d-md-block",
6565
"d-none",
66+
"d-sm-block",
67+
"d-sm-none",
6668
"display-1",
6769
"display-4",
6870
"emphasis",
6971
"end-0",
7072
"fa",
7173
"fa-10x",
7274
"fa-2x",
75+
"fa-angle-left",
7376
"fa-book-open",
7477
"fa-ellipsis",
7578
"fa-face-frown",
@@ -177,6 +180,7 @@
177180
"fab-github",
178181
"fab-linkedin",
179182
"fab-medium",
183+
"fas-angle-left",
180184
"fas-book-open",
181185
"fas-ellipsis",
182186
"fas-moon",

layouts/partials/assets/link.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
{{- $tab := .tab | default site.Params.main.externalLinks.tab -}}
3434
{{- $pretty := site.Params.main.internalLinks.pretty | default false }}
3535
{{- $isExternal := or (ne (urls.Parse (absURL $destination)).Host (urls.Parse site.BaseURL).Host) $external -}}
36+
{{- $isSpecial := and $u.Scheme (not (in (slice "http" "https") $u.Scheme)) }}
3637
{{- $isLocal := hasPrefix $destination "#" -}}
3738
{{- $page := .page -}}
3839
{{- $anchor := "" -}}
@@ -41,7 +42,11 @@
4142
{{- $class := .class -}}
4243

4344
<!-- Main code -->
44-
{{- if $isExternal -}}
45+
{{- if $isSpecial -}}
46+
{{- if not $text -}}
47+
{{- $text = (urls.Parse (absURL $destination)).Host -}}
48+
{{- end -}}
49+
{{- else if $isExternal -}}
4550
{{- if not $text -}}
4651
{{- $text = (urls.Parse (absURL $destination)).Host -}}
4752
{{- end -}}

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@gethinode/hinode",
3-
"version": "0.27.24",
3+
"version": "0.27.25",
44
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
55
"keywords": [
66
"hugo",

0 commit comments

Comments
 (0)