mirror of
https://github.com/CaiJimmy/hugo-theme-stack.git
synced 2024-11-27 12:03:49 +01:00
41fa65cbf5
Currently, the new table of contents is disabled by default. I will change that after several versions. ------------- * feat: Table of Content (WIP) * fix: set scratch inside define block * fix(toc): darkmode text color * feat: unify page layout, and add config to disable toc * feat: add scroll-behavior: smooth to html * fix: use <ol> for TOC. And Disable TOC by default for now * refactor: use css flexbox for article page with toc enable toc for example site * feat(i18n): add i18n entry for "Back" and "Table of Contents" * style: remove unused `keep-sidebar` class * doc: add table of contents as feature
20 lines
806 B
HTML
20 lines
806 B
HTML
<!DOCTYPE html>
|
|
<html lang="{{ .Site.LanguageCode }}">
|
|
<head>
|
|
{{- partial "head/head.html" . -}}
|
|
{{- block "head" . -}}{{ end }}
|
|
</head>
|
|
<body class="{{ block `body-class` . }}{{ end }}">
|
|
{{- partial "head/colorScheme" . -}}
|
|
<div class="container main-container flex {{ block `container-class` . }}on-phone--column {{ if .Site.Params.widgets.enabled }}extended{{ else }}compact{{ end }}{{ end }}">
|
|
{{- block "left-sidebar" . -}}
|
|
{{ partial "sidebar/left.html" . }}
|
|
{{- end -}}
|
|
<main class="main full-width">
|
|
{{- block "main" . }}{{- end }}
|
|
</main>
|
|
{{- block "right-sidebar" . -}}{{ end }}
|
|
</div>
|
|
{{ partial "footer/include.html" . }}
|
|
</body>
|
|
</html>
|