Skip to content

Commit

Permalink
Use RelPermalink for color-mode.js too
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR committed Mar 20, 2024
1 parent 86a5017 commit ba80cbc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layouts/partials/head.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
{{- end }}

{{- $colorModeJS := resources.Get "js/color-modes.js" | fingerprint | resources.Copy "/assets/js/color-modes.js" -}}
<script src="{{ $colorModeJS.Permalink | relURL }}"></script>
<script src="{{ $colorModeJS.RelPermalink }}"></script>

{{ partial "stylesheet" . }}
{{ partial "favicons" . }}
Expand Down

0 comments on commit ba80cbc

Please sign in to comment.