Use generated css, common to the project

This commit is contained in:
nemunaire 2026-05-17 18:05:16 +08:00
commit af2b407c52
14 changed files with 1242 additions and 132 deletions

View file

@ -1,51 +1,39 @@
<!DOCTYPE html>
<!doctype html>
<html lang="{{ .Site.LanguageCode }}">
{{ partial "head.html" . }}
{{ partial "head.html" . }}
<body>
<div id="all">
{{ partial "nav.html" . }} {{ partial "breadcrumbs.html" . }}
<body>
<div
id="content"
class="mt-5 mb-5"
style="min-height: calc(80vh - 152px)"
>
{{ if isset .Params "id" }} {{ partial .Params.id . }} {{ else
}}
<div id="all">
<div class="container">
{{ if .Params.toc }}
<aside>
<header>
<h1>{{ .Title }}</h1>
</header>
{{ .TableOfContents }}
</aside>
{{ end }}
{{ partial "nav.html" . }}
{{ partial "breadcrumbs.html" . }}
<div id="content" class="mt-5 mb-5" style="min-height: calc(80vh - 180px)">
{{ if isset .Params "id" }}
{{ partial .Params.id . }}
{{ else }}
<div class="container">
{{ if .Params.toc }}
<aside>
<header>
<h1>{{ .Title }}</h1>
</header>
{{ .TableOfContents }}
</aside>
{{ end }}
<div>
{{ .Content }}
</div>
<div>{{ .Content }}</div>
</div>
<!-- /.container -->
{{ end }}
</div>
<!-- /#content -->
</div>
<!-- /.container -->
<!-- /#all -->
{{ end }}
</div>
<!-- /#content -->
</div>
<!-- /#all -->
{{ partial "footer.html" . }}
{{ partial "scripts.html" . }}
</body>
{{ partial "footer.html" . }} {{ partial "scripts.html" . }}
</body>
</html>