feat: add rss template

feat: enhance sidebar on mobile
chore: simplify settings by having defaults
chore: update footer template
This commit is contained in:
Xin
2023-08-23 01:00:36 +01:00
parent 64e27cbc4e
commit 04a5c7378a
9 changed files with 62 additions and 42 deletions

View File

@ -15,20 +15,8 @@
<div class="overflow-y-auto overflow-x-hidden p-4 grow md:h-[calc(100vh-var(--navbar-height)-var(--menu-height))]">
<ul class="flex flex-col gap-1 md:hidden">
<!-- Nav -->
{{- range site.Menus.main }}
{{- if and .URL (and (ne .Params.type "search") (not .Params.icon)) -}}
<li>{{ template "sidebar-item-link" dict "active" false "title" .Name "link" .URL }}</li>
{{- end -}}
{{- end -}}
{{ template "sidebar-separator" -}}
{{ template "sidebar-main" (dict "context" $navRoot "pageURL" $pageURL "page" $context "toc" true) -}}
<!-- Sidebar footer -->
{{ with site.Params.sidebar.footer -}}
{{ template "sidebar-separator" }}
{{ template "sidebar-footer" }}
{{ end }}
{{ template "sidebar-main" (dict "context" site.Home "pageURL" $pageURL "page" $context "toc" true) -}}
{{ template "sidebar-footer" }}
</ul>
<!-- Sidebar on large screen -->