mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2023-12-21 10:22:58 +01:00
4a4408573e
* based on https://gist.github.com/cmod/5410eae147e4318164258742dd053993 * modified working for PaperMod * fetches current lang index.json for search * add fuse.js v6.4.3 LICENSE: Apache License 2.0 * bundled fastsearch and fusejs as search.js Co-authored-by: Craig Mod <stuff@craigmod.com>
25 lines
565 B
HTML
25 lines
565 B
HTML
<!DOCTYPE html>
|
|
<html lang="{{ .Site.Language }}" dir="{{ .Language.LanguageDirection | default "auto" }}">
|
|
|
|
<head>
|
|
{{- partial "head.html" . }}
|
|
</head>
|
|
|
|
<body class="
|
|
{{- if (or (ne .Kind `page` ) (eq .Layout `archives`) (eq .Layout `search`)) -}}
|
|
{{- print "list" -}}
|
|
{{- end -}}
|
|
{{- if eq $.Site.Params.defaultTheme `dark` -}}
|
|
{{- print " dark" }}
|
|
{{- end -}}
|
|
">
|
|
{{- partialCached "header.html" . .Page}}
|
|
<main class="main">
|
|
{{- block "main" . }}
|
|
{{- end }}
|
|
</main>
|
|
{{- partialCached "footer.html" . .Type }}
|
|
</body>
|
|
|
|
</html>
|