mirror of
https://github.com/adityatelange/hugo-PaperMod.git
synced 2024-12-27 07:25:53 -05:00
8a0783adfb
- create baseof - separate list, single - header, footer
31 lines
701 B
HTML
31 lines
701 B
HTML
<!DOCTYPE html>
|
|
<html lang="{{ .Site.LanguageCode }}">
|
|
|
|
<head>
|
|
{{- partial "head.html" . }}
|
|
</head>
|
|
|
|
<body class="{{ if eq .Kind `page` }}single{{ else }}list{{ if .IsHome }} home{{ end }}{{ end }}">
|
|
<script>
|
|
setTheme();
|
|
</script>
|
|
<header class="header">
|
|
{{- partial "header.html" . }}
|
|
</header>
|
|
|
|
<main class="main">
|
|
{{- block "main" . }}
|
|
{{end }}
|
|
</main>
|
|
|
|
<footer class="footer">
|
|
{{- partial "footer.html" . }}
|
|
</footer>
|
|
{{ $highlight := resources.Get "highlight.min.js" | minify }}
|
|
<script src="{{ $highlight.Permalink }}"></script>
|
|
<script>
|
|
hljs.initHighlightingOnLoad();
|
|
</script>
|
|
</body>
|
|
|
|
</html> |