Feat: add pageStyle option (#62)
TODO: refactor toc logic (#65)

> Tip: This commit needs to be improved and to be tested. Please don't update to it!
This commit is contained in:
Cell
2022-02-16 21:25:24 +08:00
parent 231cfc31cf
commit e369458f09
8 changed files with 58 additions and 28 deletions
+2 -1
View File
@@ -26,7 +26,8 @@
<div class="wrapper">
{{- partial "header.html" . -}}
<main class="main">
<div class="container">
{{- $pageStyle := (.Scratch.Get "params").pageStyle | default "normal" -}}
<div class="container" page-style="{{ $pageStyle }}">
{{- block "content" . }}{{ end -}}
</div>
</main>