added about handling ; bugfix

This commit is contained in:
violette 2024-05-10 00:14:39 -04:00
parent 64bef44564
commit 208080766e
4 changed files with 4 additions and 15 deletions

View file

@ -1,3 +1,5 @@
{{ define "main" }}
{{ .Content }}
{{ with $.GetPage "about" }}
{{ .Content }}
{{ end }}
{{ end }}

View file

@ -9,4 +9,3 @@
</title>
{{ partialCached "head/css.html" . }}
{{ partialCached "head/js.html" . }}

View file

@ -1,12 +0,0 @@
{{- with resources.Get "js/main.js" }}
{{- if eq hugo.Environment "development" }}
{{- with . | js.Build }}
<script src="{{ .RelPermalink }}"></script>
{{- end }}
{{- else }}
{{- $opts := dict "minify" true }}
{{- with . | js.Build $opts | fingerprint }}
<script src="{{ .RelPermalink }}" integrity="{{- .Data.Integrity }}" crossorigin="anonymous"></script>
{{- end }}
{{- end }}
{{- end }}

View file

@ -55,7 +55,7 @@ Renders a menu for the given menu ID.
<label for="color-mode"> {{ i18n "dark-mode" }}</label>
</span>
<span class="toggle-language">
<a href={{ i18n "language-switch" }}> {{ i18n "language" }}
<a href={{ i18n "language-switch" }}> {{ i18n "language" }}</a>
</span>
<span class="empty-space-menu"></span>
</li>