Skip to content

Commit

Permalink
fix: leading space cause 404, because of prettier-plugin-go-template. #…
Browse files Browse the repository at this point in the history
  • Loading branch information
xianmin committed Nov 2, 2024
1 parent 74738fe commit cd09590
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
16 changes: 8 additions & 8 deletions layouts/partials/desktop_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -91,15 +91,15 @@
<li class="menu-item">
<a class="theme-toggle menu-item-link" href="javascript:void(0);">

{{ partial "icons/icon" (dict
"path" "icons/header/sun.svg"
"className" "theme-icon-light"
) }}
{{ partial "icons/icon" (dict
"path" "icons/header/sun.svg"
"className" "theme-icon-light"
) }}

{{ partial "icons/icon" (dict
"path" "icons/header/moon.svg"
"className" "theme-icon-dark"
) }}
{{ partial "icons/icon" (dict
"path" "icons/header/moon.svg"
"className" "theme-icon-dark"
) }}

</a>
</li>
Expand Down
2 changes: 1 addition & 1 deletion layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@

<!-- custom css -->
{{ range .Site.Params.customCSS }}
<link rel="stylesheet" href="{{ "css/" | relURL }}{{ . }}">
<link rel="stylesheet" href="{{ `css/` | relURL }}{{ . }}">
{{ end }}

{{/* NOTE: These Hugo Internal Templates can be found starting at
Expand Down
18 changes: 9 additions & 9 deletions layouts/partials/mobile_header.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
) }}
</div>
<div class="mobile-navbar-logo">
<a href="{{ " /" | relLangURL }}" class="logo">
<a href="{{ `/` | relLangURL }}" class="logo">
{{- if .Site.Params.logoTitle -}}
{{ .Site.Params.logoTitle | safeHTML }}
{{- else -}}
Expand Down Expand Up @@ -102,15 +102,15 @@
<li class="mobile-menu-item">
<a class="theme-toggle menu-item-link" href="javascript:void(0);">

{{ partial "icons/icon" (dict
"path" "icons/header/sun.svg"
"className" "theme-icon-light"
) }}
{{ partial "icons/icon" (dict
"path" "icons/header/sun.svg"
"className" "theme-icon-light"
) }}

{{ partial "icons/icon" (dict
"path" "icons/header/moon.svg"
"className" "theme-icon-dark"
) }}
{{ partial "icons/icon" (dict
"path" "icons/header/moon.svg"
"className" "theme-icon-dark"
) }}

</a>
</li>
Expand Down

0 comments on commit cd09590

Please sign in to comment.