docs-mastodon/layouts/partials/sidebar.html
Renaud Chaput d356c6caac
Switch hosting to Vercel (#1113)
* Fix URLs to work when `baseURL` is in a sub-directory

* Use `RelPermalink` to not have assets loaded from `baseUrl`

* Add `.vercel` to gitignore

* Remove deploy Github Action, we are now using Vercel
2022-12-21 06:26:37 +01:00

36 lines
1.1 KiB
HTML

<a class="brand" href="/">
<img class="link-logo" src="{{ relURL "brand.svg" }}" alt="Mastodon" />
</a>
<ul>
{{ $currentPage := . }}
{{ range .Site.Menus.docs.ByWeight }}
<li>
{{ if .Page }}
<a href="{{ .URL }}" class="{{ if $currentPage.IsMenuCurrent "docs" . }}active{{ end }}">{{ .Name }}</a>
{{ else }}
<span class="sub-title">{{ .Name }}</span>
{{ end }}
{{ if .HasChildren }}
<ul class="sub-menu">
{{ range .Children }}
<li>
<a href="{{ .URL }}" class="{{ if $currentPage.IsMenuCurrent "docs" . }}active{{ end }}">{{ .Name }}</a>
{{ if .HasChildren }}
<ul class="sub-menu">
{{ range .Children }}
<li>
<a href="{{ .URL }}" class="{{ if $currentPage.IsMenuCurrent "docs" . }}active{{ end }}">{{ .Name }}</a>
</li>
{{ end }}
</ul>
{{ end }}
</li>
{{ end }}
</ul>
{{ end }}
</li>
{{ end }}
</ul>