setup hugoplate for development of chill website

This commit is contained in:
2023-10-09 15:42:02 +02:00
parent 4ff26745b7
commit 084dd2d8ed
96 changed files with 67 additions and 7 deletions

View File

@@ -0,0 +1,32 @@
{{ $context := .Context }}
{{ $class := .Class }}
{{ $base := site.BaseURL }}
<ul class="{{ $class }} inline-flex space-x-1 capitalize">
<li>
<a
class="text-primary dark:text-darkmode-primary"
href="{{ $base | relLangURL }}">
{{ i18n "home" | default "Home" }}
</a>
<span class="inlin-block mr-1">/</span>
</li>
{{ range $i, $e:= $context.Ancestors.Reverse }}
{{ if and (not .IsHome) (ne .Title "Pages") }}
<li>
<a
class="text-primary dark:text-darkmode-primary"
href="{{ .RelPermalink }}">
{{ .Title }}
</a>
<span class="inlin-block mr-1">/</span>
</li>
{{ end }}
{{ end }}
<li>
<span class="text-primary dark:text-darkmode-primary">
{{ $context.Title }}
</span>
</li>
</ul>