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" }}
|
{{ define "main" }}
|
||||||
{{ .Content }}
|
{{ with $.GetPage "about" }}
|
||||||
|
{{ .Content }}
|
||||||
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
|
|
@ -9,4 +9,3 @@
|
||||||
</title>
|
</title>
|
||||||
|
|
||||||
{{ partialCached "head/css.html" . }}
|
{{ 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>
|
<label for="color-mode"> {{ i18n "dark-mode" }}</label>
|
||||||
</span>
|
</span>
|
||||||
<span class="toggle-language">
|
<span class="toggle-language">
|
||||||
<a href={{ i18n "language-switch" }}> {{ i18n "language" }}
|
<a href={{ i18n "language-switch" }}> {{ i18n "language" }}</a>
|
||||||
</span>
|
</span>
|
||||||
<span class="empty-space-menu"></span>
|
<span class="empty-space-menu"></span>
|
||||||
</li>
|
</li>
|
||||||
|
|
Loading…
Reference in a new issue