* 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>
67 lines
2.3 KiB
HTML
67 lines
2.3 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="{{ .Site.Language.Lang }}">
|
|
<head>
|
|
<title>{{- .Site.Title -}}</title>
|
|
{{ $siteDescription := .Site.Params.description }}
|
|
{{ if (index .Site.Data .Site.Language.Lang).site }}
|
|
{{ $siteConfig := (index .Site.Data .Site.Language.Lang).site }}
|
|
{{ if $siteConfig.description }}
|
|
{{ $siteDescription = $siteConfig.description }}
|
|
{{ end }}
|
|
{{ end }}
|
|
<meta name="description" content="{{ $siteDescription }}" />
|
|
|
|
<!-- import common headers -->
|
|
{{- partial "header.html" . -}}
|
|
{{- partial "opengraph.html" . -}}
|
|
|
|
<!--================= add analytics if enabled =========================-->
|
|
{{- partial "analytics.html" . -}}
|
|
</head>
|
|
<body data-spy="scroll" data-target="#top-navbar" data-offset="100">
|
|
|
|
<!--- NAVBAR ------------------------->
|
|
{{- partial "navigators/navbar.html" . -}}
|
|
|
|
<!--- ADD HOME SECTION ---------------->
|
|
{{- partial "sections/home.html" . -}}
|
|
|
|
<!--- ADD OPTIONAL SECTIONS ----------->
|
|
{{ $sections:= site.Data.sections }}
|
|
{{ if (index site.Data site.Language.Lang).sections }}
|
|
{{ $sections = (index site.Data site.Language.Lang).sections }}
|
|
{{ end }}
|
|
|
|
{{ if $sections }}
|
|
{{ $background:= "bg-white"}}
|
|
{{ range sort $sections "section.weight" }}
|
|
{{ if .section.enable }}
|
|
<div class="container-fluid section-holder d-flex {{ $background }}">
|
|
{{ if .section.template }}
|
|
{{- partial .section.template . -}}
|
|
{{ else }}
|
|
{{- partial (printf "sections/%s.html" (replace (lower .section.id) " " "-")) . -}}
|
|
{{ end }}
|
|
</div>
|
|
<!--- alter background color for next section --->
|
|
{{ if eq $background "bg-white" }}
|
|
{{ $background = "bg-dimmed" }}
|
|
{{ else }}
|
|
{{ $background = "bg-white" }}
|
|
{{end}}
|
|
{{ end }}
|
|
{{ end }}
|
|
{{ end }}
|
|
|
|
<!--- ADD FOOTER ----------------------->
|
|
{{ $footerTemplate:= site.Params.footer.template | default "footer.html" }}
|
|
{{- partial $footerTemplate . -}}
|
|
|
|
<!--- ADD COMMON SCRIPTS --------------->
|
|
{{ partial "scripts.html" . }}
|
|
|
|
<!------ ADD SUPPORT LINKS -------->
|
|
{{- partial "misc/support.html" . -}}
|
|
|
|
</body>
|
|
</html>
|