added about handling ; bugfix
This commit is contained in:
parent
64bef44564
commit
208080766e
4 changed files with 4 additions and 15 deletions
|
@ -1,3 +1,5 @@
|
|||
{{ define "main" }}
|
||||
{{ with $.GetPage "about" }}
|
||||
{{ .Content }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
|
|
|
@ -9,4 +9,3 @@
|
|||
</title>
|
||||
|
||||
{{ partialCached "head/css.html" . }}
|
||||
{{ partialCached "head/js.html" . }}
|
||||
|
|
|
@ -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 }}
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue