log101-dot-dev/layouts/index.html

29 lines
661 B
HTML
Raw Normal View History

2023-12-04 03:43:34 +00:00
{{ define "main" }}
2023-12-08 11:39:54 +00:00
<main id="home-main">
2023-12-08 10:24:32 +00:00
<div id="home-center">
<h1 id="home-title">{{ .Site.Title }}</h1>
<nav id="home-nav">
2023-12-11 07:07:57 +00:00
{{ partial "menu.html" . }}
2023-12-08 10:24:32 +00:00
</nav>
2023-12-07 10:20:37 +00:00
</div>
<div id="site-footer">
{{ partial "footer.html" . }}
2023-12-04 03:43:34 +00:00
</div>
2023-12-08 11:39:54 +00:00
</main>
2023-12-04 03:43:34 +00:00
{{ end }}
{{ define "footer" }}
{{ with resources.Get "js/main.js" }}
{{ if hugo.IsDevelopment }}
{{ with . | js.Build }}
<script src="{{ .RelPermalink }}"></script>
{{ end }}
{{ else }}
{{ $opts := dict "minify" true }}
{{ with . | js.Build $opts | fingerprint }}
<script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script>
{{ end }}
{{ end }}
{{ end }}
{{ end }}