fix(index.html): fix doctype declaration to use lowercase 'doctype' for HTML5 compliance

fix(index.html): fix meta tag indentation for better readability
fix(index.html): fix indentation of head and body tags for better readability
fix(index.html): fix indentation of header, main, and footer sections for better readability
fix(index.html): fix indentation of script tag for better readability
fix(index.html): fix indentation of closing div tag for better readability
fix(index.html): fix indentation of closing body and html tags for better readability
feat(index.html): add partial for navigation bar to improve website navigation
fix(head.html): fix indentation of esBuildOpts variable for better readability
fix(head.html): fix indentation of script tag for better readability
feat(nav.html): add navigation bar partial to improve website navigation
This commit is contained in:
Sped0n
2023-10-29 00:59:26 +08:00
parent d32d5b5e4f
commit a07b7bc1a0
3 changed files with 68 additions and 42 deletions

View File

@@ -3,7 +3,7 @@
{{- $options := dict "targetPath" "css/style.min.css" "enableSourceMap" true -}}
{{- $style = dict "Context" . "ToCSS" $options | merge $style -}}
{{- partial "plugin/style.html" $style -}}
{{- $esBuildOpts := dict "minify" hugo.IsProduction -}}
{{ $script := resources.Get "ts/main.ts" | js.Build }}
{{- $script := resources.Get "ts/main.ts" | js.Build $esBuildOpts -}}
<script type="text/javascript" src="{{ $script.RelPermalink }}" defer></script>
<script src="https://cdn.jsdelivr.net/npm/gsap@3.12/dist/gsap.min.js"></script>

27
layouts/partials/nav.html Normal file
View File

@@ -0,0 +1,27 @@
<nav>
<div class="navArtist">
<a href="/">Bridget Baker</a>
</div>
<div class="links">
<span class="link">Featured</span>
<span class="link">iPhone</span>
<span class="link">Film</span>
<span class="link">Info</span>
</div>
<div class="threshold">
<span>Threshold:</span>
<span>
<button class="dec"></button>
<span class="num"></span><span class="num"></span><span class="num"></span
><span class="num"></span>
<button class="inc"></button>
</span>
</div>
<div class="index">
<span class="num"></span><span class="num"></span><span class="num"></span
><span class="num"></span>
<span>/</span>
<span class="num"></span><span class="num"></span><span class="num"></span
><span class="num"></span>
</div>
</nav>