fix(menu): <ol> containing other than <li>, <script> or <template> elements

This commit is contained in:
Jiahao Li 2024-01-02 20:57:03 +02:00
parent 405e84291a
commit c19bc50000
No known key found for this signature in database
GPG Key ID: D1F3E8DD25167202

View File

@ -74,8 +74,9 @@
</a>
</li>
{{ end }}
</ol>
<div class="menu-bottom-section">
<ol class="menu">
{{- $currentLanguageCode := .Language.Lang -}}
{{ if ( compare.Gt .Site.Home.AllTranslations 1 ) }}
{{ with .Site.Home.AllTranslations }}
@ -97,6 +98,6 @@
<span>{{ T "darkMode" }}</span>
</li>
{{ end }}
</div>
</ol>
</div>
</aside>