mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2025-04-29 03:53:30 +08:00
fix(menu): <ol> containing other than <li>, <script> or <template> elements
This commit is contained in:
parent
405e84291a
commit
c19bc50000
@ -74,8 +74,9 @@
|
|||||||
</a>
|
</a>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
</ol>
|
||||||
<div class="menu-bottom-section">
|
<div class="menu-bottom-section">
|
||||||
|
<ol class="menu">
|
||||||
{{- $currentLanguageCode := .Language.Lang -}}
|
{{- $currentLanguageCode := .Language.Lang -}}
|
||||||
{{ if ( compare.Gt .Site.Home.AllTranslations 1 ) }}
|
{{ if ( compare.Gt .Site.Home.AllTranslations 1 ) }}
|
||||||
{{ with .Site.Home.AllTranslations }}
|
{{ with .Site.Home.AllTranslations }}
|
||||||
@ -97,6 +98,6 @@
|
|||||||
<span>{{ T "darkMode" }}</span>
|
<span>{{ T "darkMode" }}</span>
|
||||||
</li>
|
</li>
|
||||||
{{ end }}
|
{{ end }}
|
||||||
</div>
|
</ol>
|
||||||
</ol>
|
</div>
|
||||||
</aside>
|
</aside>
|
||||||
|
Loading…
Reference in New Issue
Block a user