simpletheme/layouts/_default/baseof.html
J S 3a64fb5f38
feat[dark]: Fixed dark-mode selector
I corrected the dark-mode selector so that it appears on each page.

I also corrected the ugly tag boxes.
2023-11-13 19:49:36 -05:00

28 lines
785 B
HTML

<!DOCTYPE html>
{{ partial "head.html" . }}
<html>
{{ partial "page_header.html" . }}
<body>
<h1>{{ block "title" .}}
{{ .Title | title }}
{{- end }}
</h1>
<!-- Code that all your templates share, like a header -->
{{ block "main" . }}
{{ .Content }}
<!-- The part of the page that begins to differ between templates -->
{{ end }}
<script src="/js/dark.js"></script>
{{ block "footer" . }}
<!-- More shared code, perhaps a footer but that can be overridden if need be in -->
<script type="text/javascript"
src="https://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML">
</script>
{{ end }}
</body>
</html>