Skip to content

Commit

Permalink
Merge branch 'main' into hugo-mod-dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
markdumay authored Jan 5, 2025
2 parents 71adde9 + 7d724db commit a472ff8
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions exampleSite/hugo_stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@
"fa-2xs",
"fa-4x",
"fa-activity",
"fa-angle-left",
"fa-arrow-left",
"fa-arrow-right",
"fa-bootstrap",
Expand Down
4 changes: 4 additions & 0 deletions hugo_stats.json
Original file line number Diff line number Diff line change
Expand Up @@ -63,13 +63,16 @@
"d-inline",
"d-md-block",
"d-none",
"d-sm-block",
"d-sm-none",
"display-1",
"display-4",
"emphasis",
"end-0",
"fa",
"fa-10x",
"fa-2x",
"fa-angle-left",
"fa-book-open",
"fa-ellipsis",
"fa-face-frown",
Expand Down Expand Up @@ -177,6 +180,7 @@
"fab-github",
"fab-linkedin",
"fab-medium",
"fas-angle-left",
"fas-book-open",
"fas-ellipsis",
"fas-moon",
Expand Down
7 changes: 6 additions & 1 deletion layouts/partials/assets/link.html
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
{{- $tab := .tab | default site.Params.main.externalLinks.tab -}}
{{- $pretty := site.Params.main.internalLinks.pretty | default false }}
{{- $isExternal := or (ne (urls.Parse (absURL $destination)).Host (urls.Parse site.BaseURL).Host) $external -}}
{{- $isSpecial := and $u.Scheme (not (in (slice "http" "https") $u.Scheme)) }}
{{- $isLocal := hasPrefix $destination "#" -}}
{{- $page := .page -}}
{{- $anchor := "" -}}
Expand All @@ -41,7 +42,11 @@
{{- $class := .class -}}

<!-- Main code -->
{{- if $isExternal -}}
{{- if $isSpecial -}}
{{- if not $text -}}
{{- $text = (urls.Parse (absURL $destination)).Host -}}
{{- end -}}
{{- else if $isExternal -}}
{{- if not $text -}}
{{- $text = (urls.Parse (absURL $destination)).Host -}}
{{- end -}}
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@gethinode/hinode",
"version": "0.27.24",
"version": "0.27.25",
"description": "Hinode is a clean documentation and blog theme for Hugo, an open-source static site generator",
"keywords": [
"hugo",
Expand Down

0 comments on commit a472ff8

Please sign in to comment.