Files
bridget/layouts/partials/nav.html
Sped0n 0b350db741 feat(layouts): add baseof.html layout template
This commit adds a new layout template called baseof.html. This template is used as the base layout for all other templates in the project. It includes the basic HTML structure, meta tags, and a placeholder for the main content.

The purpose of this change is to provide a consistent and reusable base layout for all pages in the project, reducing code duplication and improving maintainability.

---

feat(layouts): add single.html layout template

This commit adds a new layout template called single.html. This template is used for rendering individual content pages. It includes a block for the main content and some additional logic for handling the current menu item and generating image JSON.

The purpose of this change is to provide a specific layout for individual content pages, allowing for customization and flexibility in their presentation.

---

refactor(layouts): remove index.html layout template and related partials

This commit removes the index.html layout template and its associated partials (footer.html, head.html, link.html, meta.html, seo.html, mobile_wrapper.html, and nav.html).

The index.html layout template was no longer needed as the project has transitioned to using the baseof.html and single.html templates for rendering pages. The associated partials were also no longer used and can be safely removed.

The purpose of this change is to clean up unused code and reduce clutter in the project.
2023-10-30 15:56:43 +08:00

36 lines
1.1 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<nav>
<div class="navArtist">
<a href="/">Bridget Baker</a>
</div>
<div class="links">
{{- $index := 0 -}}
{{- $menus := .Site.Menus.main -}}
{{- $len := len $menus }}
{{- range $menus -}}
{{- $url := .URL | relLangURL -}}
{{- if eq (add $index 1) $len -}}
<a href="{{- .URL | relLangURL -}}" class="link">{{- .Identifier -}}</a>
{{- else -}}
<a href="{{- .URL | relLangURL -}}" class="link">{{- .Identifier -}}</a>,&nbsp
{{- end -}}
{{- $index = add $index 1 -}}
{{- end -}}
</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>