Skip to content

Commit

Permalink
fix(menu): <ol> containing other than <li>, <script> or <template> el…
Browse files Browse the repository at this point in the history
…ements

Cherry-picked from CaiJimmy#925 with:

    git fetch https://github.com/TheJiahao/hugo-theme-stack.git 4bb4325
    git cherry-pick FETCH_HEAD
  • Loading branch information
TheJiahao authored and ottok committed Feb 24, 2024
1 parent ef21d66 commit bf86591
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions layouts/partials/sidebar/left.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,9 @@ <h2 class="site-description">{{ .Site.Params.sidebar.subtitle }}</h2>
</a>
</li>
{{ end }}

<div class="menu-bottom-section">
</ol>
<div class="menu-bottom-section">
<ol class="menu">
{{- $currentLanguageCode := .Language.Lang -}}
{{ with .Site.Home.AllTranslations }}
<li id="i18n-switch">
Expand All @@ -84,6 +85,6 @@ <h2 class="site-description">{{ .Site.Params.sidebar.subtitle }}</h2>
<span>{{ T "darkMode" }}</span>
</li>
{{ end }}
</div>
</ol>
</ol>
</div>
</aside>

0 comments on commit bf86591

Please sign in to comment.