* migrate bootstrap and flags to bundle * migrated main.css * migrate navbar.css and plyr * migrated mulish font and darkreader * migrated static/css/sections stylesheets * migrated list page and sidebar styles * migrated search.html ( nothing to add ) * migration single page styles * remove duplicated style tags * migrate notes. Deleted unused css in static * migrate 404 css to bundle * migrate katex styles * migrate embedpdf styles * migrated katex css --------- Co-authored-by: Aaron Qian <aaron@yeet.io>
48 lines
1.6 KiB
HTML
48 lines
1.6 KiB
HTML
{{ define "navbar" }}
|
|
{{ partial "navigators/navbar-2.html" . }}
|
|
{{ end }}
|
|
|
|
{{ define "sidebar" }}
|
|
{{ $homePage:="#" }}
|
|
{{ if site.IsMultiLingual }}
|
|
{{ $homePage = (path.Join (cond ( eq .Language.Lang "en") "" .Language.Lang) .Type) }}
|
|
{{ end }}
|
|
|
|
<section class="sidebar-section" id="sidebar-section">
|
|
<div class="sidebar-holder">
|
|
<div class="sidebar" id="sidebar">
|
|
<form class="mx-auto" method="get" action="{{ "search" | relLangURL }}">
|
|
<input type="text" name="keyword" value="" placeholder="{{ i18n "search" }}" data-search="" id="search-box" />
|
|
</form>
|
|
<div class="sidebar-tree">
|
|
<ul class="tree" id="tree">
|
|
<li id="list-heading"><a href="{{ .Type | relLangURL }}" data-filter="all">{{ i18n .Type }}</a></li>
|
|
<div class="subtree">
|
|
{{ partial "navigators/sidebar.html" (dict "menuName" "notes" "menuItems" site.Menus.notes "ctx" . ) }}
|
|
</div>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{{ end }}
|
|
|
|
{{ define "content" }}
|
|
<section class="content-section" id="content-section">
|
|
<div class="content container-fluid" id="content">
|
|
<div class="container-fluid note-card-holder" id="note-card-holder">
|
|
{{ $paginator := .Paginate .RegularPagesRecursive 10 }}
|
|
{{ range $paginator.Pages }}
|
|
{{ if .Layout }}
|
|
{{/* ignore search.md file*/}}
|
|
{{ else }}
|
|
{{ .Content }}
|
|
{{ end }}
|
|
{{ end }}
|
|
</div>
|
|
<div class="paginator">
|
|
{{ template "_internal/pagination.html" . }}
|
|
</div>
|
|
</div>
|
|
</section>
|
|
{{ end }}
|