log101-dot-dev/layouts/index.html

29 lines
661 B
HTML

{{ define "main" }}
<main id="home-main">
<div id="home-center">
<h1 id="home-title">{{ .Site.Title }}</h1>
<nav id="home-nav">
{{ partial "menu.html" . }}
</nav>
</div>
<div id="site-footer">
{{ partial "footer.html" . }}
</div>
</main>
{{ 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 }}