kern

White space theme for Hugo
Log | Files | Refs | LICENSE

commit bf09351eb380caff9b79410151e2fcc95cbcca06
Author: Chris Kiriakou <chris@kiriakou.net>
Date:   Fri, 20 Nov 2026 18:45:35 +0100

first commit

Diffstat:
ALICENSE | 9+++++++++
Aassets/css/fonts.css | 104+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Aassets/css/main.css | 670+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Aassets/fonts/subset-LinBiolinum.woff2 | 0
Aassets/fonts/subset-LinBiolinumB.woff2 | 0
Aassets/fonts/subset-LinBiolinumI.woff2 | 0
Aassets/fonts/subset-LinBiolinumK.woff2 | 0
Aassets/fonts/subset-LinLibertine.woff2 | 0
Aassets/fonts/subset-LinLibertineB.woff2 | 0
Aassets/fonts/subset-LinLibertineBI.woff2 | 0
Aassets/fonts/subset-LinLibertineDisplay.woff2 | 0
Aassets/fonts/subset-LinLibertineI.woff2 | 0
Aassets/fonts/subset-LinLibertineI_1.woff2 | 0
Aassets/fonts/subset-LinLibertineZ.woff2 | 0
Aassets/fonts/subset-LinLibertineZI.woff2 | 0
Aassets/fonts/subset-LinLibertine_M.woff2 | 0
Ai18n/de.json | 28++++++++++++++++++++++++++++
Ai18n/en.json | 27+++++++++++++++++++++++++++
Alayouts/_markup/render-image.html | 13+++++++++++++
Alayouts/_markup/render-passthrough.html | 14++++++++++++++
Alayouts/_partials/breadcrumb.html | 10++++++++++
Alayouts/_partials/footer.html | 89+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Alayouts/_partials/head.html | 21+++++++++++++++++++++
Alayouts/_partials/head/css.html | 23+++++++++++++++++++++++
Alayouts/_partials/head/js.html | 25+++++++++++++++++++++++++
Alayouts/_partials/header.html | 27+++++++++++++++++++++++++++
Alayouts/_partials/menu.bak.html | 34++++++++++++++++++++++++++++++++++
Alayouts/_partials/menu.html | 34++++++++++++++++++++++++++++++++++
Alayouts/_partials/preview.html | 18++++++++++++++++++
Alayouts/_partials/tag.html | 1+
Alayouts/_partials/terms.html | 15+++++++++++++++
Alayouts/_shortcodes/carousel.html | 3+++
Alayouts/_shortcodes/col.html | 3+++
Alayouts/_shortcodes/figure.html | 54++++++++++++++++++++++++++++++++++++++++++++++++++++++
Alayouts/_shortcodes/generic.html | 3+++
Alayouts/_shortcodes/hint.html | 10++++++++++
Alayouts/_shortcodes/posts.html | 17+++++++++++++++++
Alayouts/_shortcodes/quote.html | 10++++++++++
Alayouts/_shortcodes/row.html | 3+++
Alayouts/_shortcodes/small.html | 3+++
Alayouts/baseof.html | 18++++++++++++++++++
Alayouts/home.html | 11+++++++++++
Alayouts/page.html | 46++++++++++++++++++++++++++++++++++++++++++++++
Alayouts/rss.xml | 65+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Alayouts/section.html | 22++++++++++++++++++++++
Alayouts/taxonomy.html | 11+++++++++++
Alayouts/term.html | 24++++++++++++++++++++++++
47 files changed, 1465 insertions(+), 0 deletions(-)

diff --git a/LICENSE b/LICENSE @@ -0,0 +1,9 @@ +MIT License + +Copyright (c) 2025 Chris Kiriakou + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/assets/css/fonts.css b/assets/css/fonts.css @@ -0,0 +1,104 @@ +@font-face { + font-family: 'Linux Biolinum Keyboard'; + src: url('/fonts/subset-LinBiolinumK.woff2') format('woff2'); + font-weight: bold; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Linux Biolinum'; + src: url('/fonts/subset-LinBiolinum.woff2') format('woff2'); + font-weight: normal; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Linux Biolinum'; + src: url('/fonts/subset-LinBiolinumB.woff2') format('woff2'); + font-weight: bold; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Linux Biolinum'; + src: url('/fonts/subset-LinBiolinumI.woff2') format('woff2'); + font-weight: normal; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: 'Linux Libertine Display'; + src: url('/fonts/subset-LinLibertineDisplay.woff2') format('woff2'); + font-weight: normal; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Linux Libertine Initials'; + src: url('/fonts/subset-LinLibertineI.woff2') format('woff2'); + font-weight: normal; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Linux Libertine Mono'; + src: url('/fonts/subset-LinLibertine_M.woff2') format('woff2'); + font-weight: normal; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Linux Libertine'; + src: url('/fonts/subset-LinLibertine.woff2') format('woff2'); + font-weight: normal; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Linux Libertine'; + src: url('/fonts/subset-LinLibertineB.woff2') format('woff2'); + font-weight: bold; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Linux Libertine'; + src: url('/fonts/subset-LinLibertineBI.woff2') format('woff2'); + font-weight: bold; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: 'Linux Libertine'; + src: url('/fonts/subset-LinLibertineI_1.woff2') format('woff2'); + font-weight: normal; + font-style: italic; + font-display: swap; +} + +@font-face { + font-family: 'Linux Libertine'; + src: url('/fonts/subset-LinLibertineZ.woff2') format('woff2'); + font-weight: 600; + font-style: normal; + font-display: swap; +} + +@font-face { + font-family: 'Linux Libertine'; + src: url('/fonts/subset-LinLibertineZI.woff2') format('woff2'); + font-weight: 600; + font-style: italic; + font-display: swap; +} + diff --git a/assets/css/main.css b/assets/css/main.css @@ -0,0 +1,670 @@ +/* Wide screens */ +@media screen and (min-width: 40rem) { + html { font-size: 1.1rem; } + + .row { + display: flex; + flex-wrap: wrap; + gap: 1ch; + } + + .column { + flex: 1 1 0; + min-width: 0; + } + + .column > *:first-child { + margin-top: 0; + } +} + +/* Narrow screens */ +@media screen and (max-width: 40rem) { + html { font-size: 1rem; } +} + +@media (prefers-color-scheme: dark) { + :root { + --primary-fg-color: #fcfcfa; + --primary-bg-color: #121212; + + --secondary-fg-color: #bcbcba; + --secondary-bg-color: #232323; + + --ui-element-color: #343434; + + --chroma-string-color: #c9b2f7; + } +} + +@media (prefers-color-scheme: light) { + :root { + --primary-fg-color: #121212; + --primary-bg-color: #fcfcfa; + + --secondary-fg-color: #565654; + --secondary-bg-color: #efefed; + + --ui-element-color: #dededc; + + --chroma-string-color: #735ca1; + } +} + +h1, +h2, +h3, +h4, +h5, +h6 { + font-family: 'Linux Libertine Display', sans-serif; + line-height: 1.2; +} + +.title { text-align: center; } + +.profile-picture { + display: flex; + justify-content: center; + align-items: center; +} + +.profile-picture img { + width: 150px; + height: 150px; + border-radius: 50%; + object-fit: cover; +} + +:root { + -webkit-tap-highlight-color: transparent; +} + +html { + font-family: 'Linux Libertine', serif; + line-height: 1.4; + text-size-adjust: 100%; + -ms-text-size-adjust: 100%; + -moz-text-size-adjust: 100%; + -webkit-text-size-adjust: 100%; + height: 100%; + scrollbar-color: var(--ui-element-color) transparent; + color: var(--primary-fg-color); + background-color: var(--primary-bg-color); +} + +body { + display: flex; + flex-direction: column; + min-height: 100dvh; + height: 100%; + margin: 0 auto; + max-width: 40rem; + width: 100%; +} + +main:has(.article) { + padding-left: 0; + padding-right: 0; +} + +.post-nav, +.page-item, +article > .row > .column > p, +article > .row > .column > h1, +article > .row > .column > h2, +article > .row > .column > h3, +article > .row > .column > h4, +article > .row > .column > h5, +article > .row > .column figure > figcaption, +article > .row > .column > table, +article > .rss-link, +article > .preview-footer, +article > .tag-section, +article > table, +article > .post-title, +article > .metadata, +article > h1, +article > h2, +article > h3, +article > h4, +article > h5, +article > h6, +article figure > figcaption, +article > p { + padding-left: 1rem; + padding-right: 1rem; +} + +a:visited, +a:link { color: var(--primary-fg-color); } + +.current-page { + font-family: 'Linux Biolinum', serif; + color: var(--secondary-fg-color); +} + +article > iframe { + flex: 1; + display: flex; + margin-inline: auto; +} + +header, +footer { + padding-left: 2ch; + padding-right: 2ch; + width: 100%; + box-sizing: border-box; +} + +header { + background-color: var(--primary-bg-color); + + padding-bottom: 0.25rem; + padding-top: 0.5rem; + display: flex; + + top: 0; + left: 0; + right: 0; + + z-index: 10; + position: fixed; + + width: 40rem; + margin: 0 auto; +} + +.nav-menu { + font-family: 'Linux Biolinum', sans-serif; + font-size: small; + display: flex; + width: 100%; + align-items: baseline; + gap: 2ch; +} + +.nav-menu-right { + margin-left: auto; + flex-shrink: 0; +} + +.nav-menu-left { + flex: 1; + min-width: 0; +} + +.nav-menu-center { + display: flex; + gap: 2ch; +} + +.breadcrumb { + gap: 0.5ch; + list-style: none; + padding: 0; + margin: 0; + white-space: nowrap; + text-overflow: ellipsis; + overflow: hidden; +} + +.breadcrumb li { display: inline; } + +.breadcrumb li:not(:last-child)::after { + content: "›"; +} + +select { + font-family: 'Linux Biolinum', sans-serif; + font-size: small; + border-radius: var(--border-radius); + border: none; + background: none; + outline: none; + color: var(--secondary-fg-color); +} + +select:focus { + outline: none; +} + +main { + flex: 1 0 auto; + max-width: 100%; + box-sizing: border-box; + margin-top: 2rem; +} + +footer { + display: flex; + flex-direction: column; + + margin-top: 2rem; + padding-bottom: 0.5rem; + color: var(--secondary-fg-color); + text-decoration-color: var(--secondary-fg-color); + + + background: var(--ui-element-color); + background: linear-gradient(0deg, var(--ui-element-color) 0%, var(--primary-bg-color) 100%); +} + +.footer-row { + display: flex; + flex-direction: row; + + margin: 1rem 0; + gap: 5%; +} + +.footer-column { + display: flex; + flex-direction: column; + gap: 0.25rem; +} + +.footer-column-title { + font-weight: bold; +} + +.footer-row:last-child > .footer-item:last-child { + margin-left: auto; +} + +.footer-item { + display: flex; + flex-direction: row; +} + +figure { + margin-left: 0; + margin-right: 0; +} + +figcaption { + font-size: small; + color: var(--secondary-fg-color); +} + +figcaption p { + margin-top: 0.5em; +} + +video, +img { + display: block; + max-width: 100%; +} + +p:has(img) { + display: flex; + gap: 1ch; + align-items: flex-start; +} + +p img { + max-width: 35%; + height: auto; + align-self: flex-start; + object-fit: contain; + flex-shrink: 0; +} + +p sup, +p sub { line-height: 1; } + +blockquote { + color: var(--secondary-fg-color); + border-left: 3px solid var(--ui-element-color); + margin-left: 0; + margin-right: 0; + padding: 0 1rem; +} + +blockquote .citation { text-align: right; } + +.citation .small-text { + font-family: 'Linux Biolinum', sans-serif; +} + +a { overflow-wrap: break-word; } + +a:hover { text-decoration: none; } + +pre, +code { + font-family: 'Linux Libertine Mono', monospace; + font-size: 0.8rem; + line-height: 1.3; +} + +pre { background-color: var(--secondary-bg-color); } + +pre { + padding: 1rem; + scrollbar-color: var(--ui-element-color) transparent; +} + +pre + * { + margin-top: 0; +} + +del { color: var(--secondary-fg-color); } + +code { overflow-wrap: break-word; } + + +article > pre { + display: block; + white-space: pre-wrap; + overflow-wrap: anywhere; +} + +table { + display: block; + width: fit-content; /* oder eine feste Breite */ + max-width: 100%; + margin: 1rem auto; /* zentriert horizontal */ + padding: 0 1rem; + border-collapse: collapse; + overflow: hidden; +} + +thead { + border-top: 1px solid var(--ui-element-color); + border-bottom: 1px solid var(--ui-element-color); +} + +tr { border-bottom: 1px solid var(--ui-element-color); } + +th, +td { padding: 0.25rem; } + +hr { + border: none; + border-top: 1px solid var(--ui-element-color); + width: 60%; +} + +.math-block { + width: 100%; + overflow-x: auto; +} + + +.nav-menu a:link, +.nav-menu a:visited { + color: var(--secondary-fg-color) +} + +.back-to-parent { + color: var(--primary-fg-color); + text-decoration: none; +} + +.post-nav { + font-family: 'Linux Biolinum', sans-serif; + font-size: small; + display: flex; + justify-content: space-between; + align-items: center; + gap: 1rem; + margin-top: 1rem; + margin-bottom: 1rem; +} + +.next-post { + text-align: right; + margin-left: auto; +} + +.metadata .tags { + display: flex; + gap: 1ch; +} + +.metadata .tag { + text-transform: uppercase; + color: var(--secondary-fg-color); +} + +.metadata { + color: var(--secondary-fg-color); + font-family: 'Linux Biolinum', sans-serif; + font-size: small; + display: flex; + gap: 1ch; +} + +.metadata-edited { font-style: italic; } + +.preview-wrapper { + text-decoration: none; + color: var(--primary-fg-color); +} + +.preview { + margin: 2rem 0; +} + +hr { + margin-top: 2rem; + margin-bottom: 2rem; +} + +p:has( + ul) { + margin-bottom: 0.25rem; +} + +ul { + margin-top: 0.25rem; +} + +ul li { + list-style: "- "; +} + +.preview > * > * { + margin: 0.5rem 0; +} + +.preview nav { text-align: right; } + +.preview-footer { + display: flex; + column-gap: 1ch; +} + +.preview-footer > * { + display: flex; + gap: 1ch; +} + +.hint { + border: 1px solid var(--ui-element-color); + margin: 1rem; + padding: 1rem; +} + +.hint-title { + text-align: center; +} + +.preview-footer-right { margin-left: auto; } + +.page-item { + display: flex; + flex-direction: row; + align-items: baseline; + margin: 0.25rem 0; + column-gap: 1ch; +} + +.page-item > div:first-child { + flex-shrink: 0; + white-space: nowrap; +} + +.page-item > div > span { padding-right: 0.5rem; } + +footer *, +.footnotes { + font-family: 'Linux Biolinum', sans-serif; + font-size: small; +} + +footer a:link, +footer a:visited, +footer { + color: var(--secondary-fg-color); +} + +.footnotes { + margin-top: 2rem; + margin-bottom: 2rem; +} + +.footnotes ol { + padding-left: 2rem; + padding-right: 1rem; +} + +.highlight table { display: table; } + +.highlight + * { margin-top: 0; } + +.highlight > .chroma { + overflow-x: auto; +} + +.highlight .cl { padding-right: 1rem; } + +.highlight tr, +.highlight td, +.highlight th, +.highlight table { border: none; } + +.highlight .lntable { + padding: 0; + margin: 0; +} + +.highlight .lnt { color: var(--secondary-fg-color); } + +.highlight td, +.highlight th { padding: 0; } + +.chroma .lnlinks { outline: none; } + +.chroma .lntd { vertical-align: top; } + +.chroma .line { + display: flex; + width: 100%; +} + +.chroma .cl { flex: 1 1 auto; } + +.chroma .mi, +.chroma .mf, +.chroma .s { color: var(--chroma-string-color); } + +.chroma .c1 { color: var(--secondary-fg-color); } + +.chroma + +/* Carousel begin */ +.carousel { + width: 100%; + display: flex; + align-items: center; + + overflow-x: scroll; + scroll-snap-type: x mandatory; +} + +.carousel > figure { + align-items: center; +} + +.carousel figure { + margin: 0; /* reset the browser's default figure margins */ + + flex: 0 0 100%; + scroll-snap-align: center; +} + +.carousel figcaption { + display: column; +} +/* Carousel end */ + +.small-text { + font-size: small; +} + +.greeting { + text-align: center; + border: 1px solid var(--ui-element-color); + font-style: italic; + padding: 1ch; + margin-left: 1rem; + margin-right: 1rem; +} + +.greeting > * { + margin-left: auto; + margin-right: auto; + width: 70%; +} + +.greeting > *:first-child { margin-top: 0; } + +.greeting > *:last-child { margin-bottom: 0; } + +.version-name { text-decoration: none; } + +@media print { + html { + font-size: 12pt; + line-height: 1.6; + } + + a, + p { + overflow-wrap: break-word; + hyphens: auto; + text-align: justify; + } + + .tag-section, + .micro-post-footer, + .regular-post-footer, + header, + footer { display: none; } + + tbody, + thead { + border-top: 1px solid; + border-bottom: 1px solid; + } + + figure, + .footnotes > ol > li, + table, + tr, + td, + th { page-break-inside: avoid; } + + pre { + font-size: 10pt; + line-height: 1.1; + } + + @page { + size: A4; + margin: 20mm; + } +} diff --git a/assets/fonts/subset-LinBiolinum.woff2 b/assets/fonts/subset-LinBiolinum.woff2 Binary files differ. diff --git a/assets/fonts/subset-LinBiolinumB.woff2 b/assets/fonts/subset-LinBiolinumB.woff2 Binary files differ. diff --git a/assets/fonts/subset-LinBiolinumI.woff2 b/assets/fonts/subset-LinBiolinumI.woff2 Binary files differ. diff --git a/assets/fonts/subset-LinBiolinumK.woff2 b/assets/fonts/subset-LinBiolinumK.woff2 Binary files differ. diff --git a/assets/fonts/subset-LinLibertine.woff2 b/assets/fonts/subset-LinLibertine.woff2 Binary files differ. diff --git a/assets/fonts/subset-LinLibertineB.woff2 b/assets/fonts/subset-LinLibertineB.woff2 Binary files differ. diff --git a/assets/fonts/subset-LinLibertineBI.woff2 b/assets/fonts/subset-LinLibertineBI.woff2 Binary files differ. diff --git a/assets/fonts/subset-LinLibertineDisplay.woff2 b/assets/fonts/subset-LinLibertineDisplay.woff2 Binary files differ. diff --git a/assets/fonts/subset-LinLibertineI.woff2 b/assets/fonts/subset-LinLibertineI.woff2 Binary files differ. diff --git a/assets/fonts/subset-LinLibertineI_1.woff2 b/assets/fonts/subset-LinLibertineI_1.woff2 Binary files differ. diff --git a/assets/fonts/subset-LinLibertineZ.woff2 b/assets/fonts/subset-LinLibertineZ.woff2 Binary files differ. diff --git a/assets/fonts/subset-LinLibertineZI.woff2 b/assets/fonts/subset-LinLibertineZI.woff2 Binary files differ. diff --git a/assets/fonts/subset-LinLibertine_M.woff2 b/assets/fonts/subset-LinLibertine_M.woff2 Binary files differ. diff --git a/i18n/de.json b/i18n/de.json @@ -0,0 +1,28 @@ +{ + "contact": "Kontakt", + "external": "Extern", + "socialMedia": "Soziale Medien", + "pages": "Seiten", + "back": "Zurück", + "prevPost": "Vorheriger Post", + "nextPost": "Nächster Post", + "section": "Bereich", + "tags": "Tags", + "recent": "Aktuelles", + "on": "auf", + "show": "Anzeigen", + "latestPost": "Neuster Beitrag", + "new": "neu", + "edited": "Bearbeitet", + "blog": "Blog", + "home": "Startseite", + "about": "About", + "email": "E-Mail", + "imprint": "Impressum", + "privacy": "Datenschutz", + "rssFeed": "RSS Feed", + "readMore": "Mehr lesen", + "min": "Min.", + "readingTime": "Lesedauer", + "recentPosts": "Aktuelle Blogbeiträge" +} diff --git a/i18n/en.json b/i18n/en.json @@ -0,0 +1,27 @@ +{ + "contact": "Contact", + "external": "External", + "pages": "Pages", + "back": "Back", + "prevPost": "Previous Post", + "nextPost": "Next Post", + "section": "Section", + "tags": "Tags", + "recent": "Recent", + "on": "on", + "show": "show", + "latestPost": "Latest Post", + "new": "new", + "edited": "Edited", + "blog": "Blog", + "home": "Home", + "about": "About", + "email": "Email", + "imprint": "Imprint", + "privacy": "Privacy", + "rssFeed": "RSS Feed", + "readMore": "Read More", + "min": "min.", + "readingTime": "Reading Time", + "recentPosts": "Recent Blog Posts" +} diff --git a/layouts/_markup/render-image.html b/layouts/_markup/render-image.html @@ -0,0 +1,13 @@ +{{- if .IsBlock -}} + <figure> + <img src="{{ .Destination | safeURL }}" + {{- with .PlainText }} alt="{{ . }}"{{ end -}} + > + {{- with .Title }}<figcaption>{{ . }}</figcaption>{{ end -}} + </figure> +{{- else -}} + <img src="{{ .Destination | safeURL }}" + {{- with .PlainText }} alt="{{ . }}"{{ end -}} + {{- with .Title }} title="{{ . }}"{{ end -}} + > +{{- end -}} diff --git a/layouts/_markup/render-passthrough.html b/layouts/_markup/render-passthrough.html @@ -0,0 +1,14 @@ +{{- $opts := dict "output" "mathml" "displayMode" (eq .Type "block") }} +{{- with try (transform.ToMath .Inner $opts) }} + {{- with .Err }} + {{- errorf "Unable to render math-markup to HTML using transform.ToMath. KaTeX display engine threw following error: %s: see %s." . $.Position }} + {{- else }} + {{ if eq $opts.displayMode true }} + <div class="math-block"> + {{ .Value }} + </div> + {{ else }} + {{- .Value }} + {{ end }} + {{- end }} +{{- end -}} diff --git a/layouts/_partials/breadcrumb.html b/layouts/_partials/breadcrumb.html @@ -0,0 +1,10 @@ +<nav aria-label="breadcrumb" class="nav-menu-left breadcrumb"> + <ol> + {{ range .Ancestors.Reverse }} + <li> + <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a> + </li> + {{ end }} + <li class="current-page" aria-current="page">{{ .LinkTitle }}</li> + </ol> +</nav> diff --git a/layouts/_partials/footer.html b/layouts/_partials/footer.html @@ -0,0 +1,89 @@ +<div class="footer-row"> + <nav class="footer-column" id="site-navigation"> + <span class="footer-column-title">{{ T "pages" }}:</span> + {{- partial "menu.html" (dict "menuID" "main" "page" .) -}} + <a + class="nav-item" + id="rss-link" + href="{{ absLangURL "posts" }}/index.xml" + >{{ T "rssFeed" }}</a> + <a + class="nav-item" + id="imprint" + href="{{ absLangURL "imprint" }}" + >{{ T "imprint" }}</a> + <a + class="nav-item" + id="privacy-link" + href="{{ absLangURL "privacy" }}" + >{{ T "privacy" }}</a> + </nav> + <nav class="footer-column" id="external-links"> + <span class="footer-column-title">{{ T "external" }}:</span> + <a + class="nav-item" + id="git" + {{ if not .Site.Params.author.gitURL }} + style="text-decoration: line-through" + {{ else }} + href="{{ .Site.Params.author.gitURL }}" + {{ end }} + >Git</a> + <a + class="nav-item" + id="github" + {{ if not .Site.Params.author.githubUser }} + style="text-decoration: line-through" + {{ else }} + href="https://github.com/{{ .Site.Params.author.githubUser }}" + {{ end }} + >GitHub</a> + <a + class="nav-item" + id="linkedin" + {{ if not .Site.Params.autor.linkedinUser }} + style="text-decoration: line-through" + {{ else }} + href="{{ .Site.Params.autor.linkedinUser }}" + {{ end }} + >LinkedIn</a> + <a + class="nav-item" + id="twitter" + {{ if not .Site.Params.autor.twitterUser }} + style="text-decoration: line-through" + {{ else }} + href="{{ .Site.Params.autor.twitterUser }}" + {{ end }} + >Twitter/X</a> + </nav> + <div class="footer-column" id="contact-info"> + <span class="footer-column-title">{{ T "contact" }}:</span> + <a + class="nav-item" + id="email" + {{ if not .Site.Params.author.email }} + style="text-decoration: line-through" + {{ else }} + href="mailto:{{ .Site.Params.author.discordID }}" + {{ end }} + >{{ T "email" }}</a> + <a + class="nav-item" + id="discord" + {{ if not .Site.Params.author.discordID }} + style="text-decoration: line-through" + {{ else }} + href="https://discordapp.com/users/{{ .Site.Params.author.discordID }}" + {{ end }} + >Discord</a> + </div> +</div> +<div class="footer-row"> + <div class="footer-item"> + <span class="copyright">&copy; {{ now.Year }} {{ .Site.Params.author.name }}</span> + </div> + <div class="footer-item"> + <span class="version">v{{ .Site.Params.version }}-{{ .Site.Params.versionName }}</span> + </div> +</div> diff --git a/layouts/_partials/head.html b/layouts/_partials/head.html @@ -0,0 +1,21 @@ +{{ if .Params.noindex }} + <meta name="robots" content="noindex"> +{{ end }} +<meta charset="utf-8"> +<meta name="generator" content="hugo"> +<meta name="viewport" content="width=device-width, initial-scale=1.0, viewport-fit=cover"> +<meta name="color-scheme" content="light dark"> +<meta name="author" content="{{ .Site.Params.author.email}} ({{ .Site.Params.author.name }})"> +{{- with .Summary }} +<meta name="description" content="{{ . }}"> +{{- end }} +{{- with .Params.tags }} +<meta name="keywords" content="{{ delimit . ", " }}"> +{{- end }} +<meta name="format-detection" content="telephone=no"> +<title>{{ .Title }} &vert; {{ site.Title }}</title> +{{ partialCached "head/css.html" . -}} +{{ with .OutputFormats.Get "rss" -}} +{{ printf `<link rel=%q type=%q href=%q title=%q>` .Rel .MediaType.Type .Permalink site.Title | safeHTML }} +{{ end -}} +<link rel="shortcut icon" href="{{ "favicon.ico" | relURL }}" type="image/x-icon"> diff --git a/layouts/_partials/head/css.html b/layouts/_partials/head/css.html @@ -0,0 +1,23 @@ +{{- with resources.Get "css/fonts.css" -}} + {{- if hugo.IsDevelopment -}} + <link rel="stylesheet" href="{{ .RelPermalink }}"> + {{- else -}} + {{- with . | minify | fingerprint -}} + <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"> + {{- end -}} + {{- end -}} +{{- end -}} + +{{ range resources.ByType "font" }} + <link rel="preload" href="{{ .RelPermalink }}" as="font" type="{{ .MediaType.Type }}" crossorigin> +{{ end }} + +{{- with resources.Get "css/main.css" -}} + {{- if hugo.IsDevelopment -}} + <link rel="stylesheet" href="{{ .RelPermalink }}"> + {{- else -}} + {{- with . | minify | fingerprint -}} + <link rel="stylesheet" href="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"> + {{- end -}} + {{- end -}} +{{- end }} diff --git a/layouts/_partials/head/js.html b/layouts/_partials/head/js.html @@ -0,0 +1,25 @@ +{{- with resources.Get "js/main.js" }} + {{- $opts := dict + "minify" (not hugo.IsDevelopment) + "sourceMap" (cond hugo.IsDevelopment "external" "") + "targetPath" "js/main.js" + }} + {{- with . | js.Build $opts }} + {{- if hugo.IsDevelopment }} + <script src="{{ .RelPermalink }}"></script> + {{- else }} + {{- with . | fingerprint }} + <script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script> + {{- end }} + {{- end }} + {{- end }} +{{- end }} +{{- with resources.Get "js/main.js" -}} + {{- if hugo.IsDevelopment -}} + <script src="{{ .RelPermalink }}"></script> + {{- else -}} + {{- with . | minify | fingerprint -}} + <script src="{{ .RelPermalink }}" integrity="{{ .Data.Integrity }}" crossorigin="anonymous"></script>> + {{- end -}} + {{- end -}} +{{- end -}} diff --git a/layouts/_partials/header.html b/layouts/_partials/header.html @@ -0,0 +1,27 @@ +<div class="nav-menu"> + <nav aria-label="breadcrumb" class="nav-menu-left"> + <ol class="breadcrumb"> + {{ range .Ancestors.Reverse }} + <li> + <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a> + </li> + {{ end }} + <li class="current-page" aria-current="page">{{ .LinkTitle }}</li> + </ol> + </nav> + <div class="nav-menu-right"> + {{ $currentLang := .Language.Label }} + {{ if .Translations }} + <select + id="language-menu" + onchange="location = this.value;" + aria-label="Language menu" + > + <option value="{{ .RelPermalink }}">{{ $currentLang }}</option> + {{- range .Translations -}} + <option value="{{ .RelPermalink }}">{{ .Language.Label }}</option> + {{ end -}} + </select> + {{ end }} + </div> +</div> diff --git a/layouts/_partials/menu.bak.html b/layouts/_partials/menu.bak.html @@ -0,0 +1,34 @@ +{{- $page := .page -}} +{{- $menuID := .menuID -}} +{{- with index site.Menus $menuID -}} + {{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) -}} +{{- end -}} + +{{- define "_partials/inline/menu/walk.html" -}} + {{- $page := .page -}} + {{- range .menuEntries -}} + {{- $attrs := dict "href" .URL -}} + {{- if $page.IsMenuCurrent .Menu . -}} + {{- $attrs = merge $attrs (dict "class" "active" "aria-current" "page") -}} + {{- else if $page.HasMenuCurrent .Menu . -}} + {{- $attrs = merge $attrs (dict "class" "ancestor" "aria-current" "true") -}} + {{- end -}} + {{- $name := .Name -}} + {{- with .Identifier -}} + {{- with T . -}} + {{- $name = . -}} + {{- end -}} + {{- end -}} + + <a + {{- range $k, $v := $attrs -}} + {{- with $v -}} + {{- printf " %s=%q" $k $v | safeHTMLAttr -}} + {{- end -}} + {{- end -}} + >{{ $name }}</a> + {{ with .Children -}} + {{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) -}} + {{- end -}} + {{- end -}} +{{- end -}} diff --git a/layouts/_partials/menu.html b/layouts/_partials/menu.html @@ -0,0 +1,34 @@ +{{- $page := .page -}} +{{- $menuID := .menuID -}} +{{- with index site.Menus $menuID -}} + {{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) -}} +{{- end -}} + +{{- define "_partials/inline/menu/walk.html" -}} + {{- $page := .page -}} + {{- range .menuEntries -}} + {{- $attrs := dict "href" .URL -}} + {{- if $page.IsMenuCurrent .Menu . -}} + {{- $attrs = merge $attrs (dict "class" "active" "aria-current" "page") -}} + {{- else if $page.HasMenuCurrent .Menu . -}} + {{- $attrs = merge $attrs (dict "class" "ancestor" "aria-current" "true") -}} + {{- end -}} + {{- $name := .Name -}} + {{- with .Identifier -}} + {{- with T . -}} + {{- $name = . -}} + {{- end -}} + {{- end -}} + + <a + {{- range $k, $v := $attrs -}} + {{- with $v -}} + {{- printf " %s=%q" $k $v | safeHTMLAttr -}} + {{- end -}} + {{- end -}} + >{{ $name }}</a> + {{ with .Children -}} + {{- partial "inline/menu/walk.html" (dict "page" $page "menuEntries" .) -}} + {{- end -}} + {{- end -}} +{{- end -}} diff --git a/layouts/_partials/preview.html b/layouts/_partials/preview.html @@ -0,0 +1,18 @@ +<a href="{{ .RelPermalink }}" class="preview-wrapper"> + <div class="preview"> + {{- $wc := .WordCount }} + {{- $microPostLen := .Site.Params.microPostLen }} + <article class="{{ if le $wc $microPostLen }}preview-micro-post{{ else }}preview-regular-post{{ end }}" id="{{ .File.ContentBaseName }}"> + <h2 class="preview-post-title">{{ .Title }}</h2> + {{ .Summary }} + <div class="preview-footer metadata"> + {{- $dateTime := .Date | time.Format "2006-01-02T15:04:05-07:00" }} + {{- $dateF := .Date | time.Format ":date_medium" }} + {{- $timeF := .Date | time.Format ":time_short" }} + <time id="publication-date-time" datetime="dateTime">{{ $dateF }}, {{ $timeF }}</time> + <span class="seperator">&middot;</span> + <span class="reading-time">{{ .ReadingTime }}&thinsp;MIN</span> + </div> + </article> + </div> +</a> diff --git a/layouts/_partials/tag.html b/layouts/_partials/tag.html @@ -0,0 +1 @@ +<a href="{{ .RelPermalink }}" class="tag">{{ .LinkTitle }}</a> diff --git a/layouts/_partials/terms.html b/layouts/_partials/terms.html @@ -0,0 +1,15 @@ +{{- /* +For a given taxonomy, renders a list of terms assigned to the page. + +@context {page} page The current page. +@context {string} taxonomy The taxonomy. + +@example: {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }} +*/}} +{{- $page := .page }} +{{- $taxonomy := .taxonomy }} +{{- with $page.GetTerms $taxonomy }} +{{- range . -}} +{{ partial "tag.html" }} +{{- end -}} +{{- end }} diff --git a/layouts/_shortcodes/carousel.html b/layouts/_shortcodes/carousel.html @@ -0,0 +1,3 @@ +<div class="carousel"> + {{ .Inner }} +</div> diff --git a/layouts/_shortcodes/col.html b/layouts/_shortcodes/col.html @@ -0,0 +1,3 @@ +<div class="column" {{ with .Get "width" }}style="flex: 0 0 {{ . }}"{{ end }}> + {{ .Inner }} +</div> diff --git a/layouts/_shortcodes/figure.html b/layouts/_shortcodes/figure.html @@ -0,0 +1,54 @@ +<figure{{ with .Get "class" }} class="{{ . }}"{{ end }}> + {{- if .Get "link" -}} + <a href="{{ .Get "link" }}"{{ with .Get "target" }} target="{{ . }}"{{ end }}{{ with .Get "rel" }} rel="{{ . }}"{{ end }}> + {{- end -}} + + {{- $u := urls.Parse (.Get "src") -}} + {{- $src := .Get "src" -}} + {{- if not $u.IsAbs -}} + {{- with or (.Page.Resources.Get $u.Path) (resources.Get $u.Path) -}} + {{- $src = .RelPermalink -}} + {{- end -}} + {{- end -}} + + {{ $ext := lower (path.Ext $src) }} + {{ if or (eq $ext ".png") (eq $ext ".jpg") (eq $ext ".jpeg") (eq $ext ".gif") (eq $ext ".webp") }} + <img src="{{ $src }}" + {{- if or (.Get "alt") (.Get "caption") }} + alt="{{ with .Get "alt" }}{{ . }}{{ else }}{{ .Get "caption" | markdownify| plainify }}{{ end }}" + {{- end -}} + {{- with .Get "width" }} width="{{ . }}"{{ end -}} + {{- with .Get "height" }} height="{{ . }}"{{ end -}} + {{- with .Get "loading" }} loading="{{ . }}"{{ end -}} + {{- with .Get "id" }} id="{{ . }}"{{ end -}} + > + {{ else if or (eq $ext ".mp4") }} + <video src="{{ $src }}" + {{- if or (.Get "alt") (.Get "caption") }} + alt="{{ with .Get "alt" }}{{ . }}{{ else }}{{ .Get "caption" | markdownify| plainify }}{{ end }}" + {{- end -}} + {{- with .Get "width" }} width="{{ . }}"{{ end -}} + {{- with .Get "height" }} height="{{ . }}"{{ end -}} + {{- with .Get "loading" }} loading="{{ . }}"{{ end -}} + {{- with .Get "id" }} id="{{ . }}"{{ end -}} + controls + playsinline muted + ></video> + {{ end }} + {{- if .Get "link" }}</a>{{ end -}} + {{- if or (or (.Get "title") (.Get "caption")) (.Get "attr") -}} + <figcaption> + {{ with (.Get "title") -}} + <h4>{{ . }}</h4> + {{- end -}} + {{- if or (.Get "caption") (.Get "attr") -}}<p> + {{- .Get "caption" | markdownify -}} + {{- with .Get "attrlink" }} + <a href="{{ . }}"> + {{- end -}} + {{- .Get "attr" | markdownify -}} + {{- if .Get "attrlink" }}</a>{{ end }}</p> + {{- end }} + </figcaption> + {{- end }} +</figure> diff --git a/layouts/_shortcodes/generic.html b/layouts/_shortcodes/generic.html @@ -0,0 +1,3 @@ +<div {{ with .Get "class" }}class="{{ . }}"{{ end }}> + {{ .Inner }} +</div> diff --git a/layouts/_shortcodes/hint.html b/layouts/_shortcodes/hint.html @@ -0,0 +1,10 @@ +<div class="hint"> + {{ with .Get "title" }} + <div class="hint-title"> + {{ . | markdownify }} + </div> + {{ end }} + <div class="hint-inner"> + {{ .Inner | markdownify }} + </div> +</div> diff --git a/layouts/_shortcodes/posts.html b/layouts/_shortcodes/posts.html @@ -0,0 +1,17 @@ +{{- $posts := where .Site.RegularPages "Section" "posts" }} +{{- with $posts }} + <div class="pages"> + {{- range . -}} + <div class="page-item" id="{{ .File.ContentBaseName }}"> + {{ $dateTime := .Date | time.Format "2006-01-02T15:04:05-07:00" -}} + {{- $dateF := .Date | time.Format ":date_short" -}} + <span> + <time datetime="{{ $dateTime }}">{{ $dateF }}</time>: + </span> + <div> + <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a> + </div> + </div> + {{- end }} + </div> +{{- end }} diff --git a/layouts/_shortcodes/quote.html b/layouts/_shortcodes/quote.html @@ -0,0 +1,10 @@ +<blockquote> +<div class="quote"> + {{- .Inner | markdownify -}} +</div> +{{- with .Get "citation" -}} + <div class="citation"> + &mdash; {{ . | markdownify }} + </div> +{{- end -}} +</blockquote> diff --git a/layouts/_shortcodes/row.html b/layouts/_shortcodes/row.html @@ -0,0 +1,3 @@ +<div class="row"> + {{ .Inner }} +</div> diff --git a/layouts/_shortcodes/small.html b/layouts/_shortcodes/small.html @@ -0,0 +1,3 @@ +<span class="small-text"> + {{ .Inner | markdownify }} +</span> diff --git a/layouts/baseof.html b/layouts/baseof.html @@ -0,0 +1,18 @@ +<!DOCTYPE html> +<html lang="{{- site.Language.Locale -}}" dir="{{- or site.Language.Direction `ltr` -}}"> +<head> +{{ partial "head.html" . -}} +</head> +<body> +<header> +{{ partial "header.html" . -}} +</header> +<main> +{{- block "main" . }} +{{ end -}} +</main> +<footer> +{{ partial "footer.html" . -}} +</footer> +</body> +</html> diff --git a/layouts/home.html b/layouts/home.html @@ -0,0 +1,11 @@ +{{ define "main" }} +<article> + <h1 class="title">{{ .Site.Title }}</h1> + {{ with .Site.Params.profilePicture }} + <div class="profile-picture"> + <img src="{{ . }}"> + </div> + {{ end }} + {{ .Content }} +</article> +{{ end }} diff --git a/layouts/page.html b/layouts/page.html @@ -0,0 +1,46 @@ +{{- define "main" -}} + {{- $wc := .WordCount -}} + {{- $microPostLen := .Site.Params.microPostLen -}} + {{- if le $wc $microPostLen }} + <article class="micro-post"> + {{ else }} + <article class="regular-post"> + {{ end -}} + <h1 class="pagetitle">{{ .Title }}</h1> + {{- if .Date }} + <div class="metadata"> + {{ with .Date -}} + {{- $dateTime := . | time.Format "2006-01-02T15:04:05-07:00" }} + {{- $dateF := . | time.Format ":date_short" }} + {{- $timeF := . | time.Format ":time_short" -}} + <span> + <time id="publication-date-time" datetime="{{ $dateTime }}">{{ $dateF }}, {{ $timeF }}</time> + </span> + {{ end -}} + {{- with .GetTerms "tags" -}} + <span class="seperator">&middot;</span> + <span class="tags"> + {{ range . }} + {{- partial "tag.html" . -}} + {{ end -}} + </span> + {{ end -}} + </div> + {{- end }} + {{ .Content -}} + </article> + {{- if and (eq .Type "posts") (or .PrevInSection .NextInSection) }} + <nav class="post-nav"> + {{- with .NextInSection }} + <div class="prev-post"> + <a href="{{ .RelPermalink }}" rel="prev">‹ {{ T "nextPost" }}</a> + </div> + {{ else }}<div class="prev-post"></div>{{ end -}} + {{- with .PrevInSection }} + <div class="next-post"> + <a href="{{ .RelPermalink }}" rel="next">{{ T "prevPost" }} ›</a> + </div> + {{ end -}} + </nav> + {{ end -}} +{{ end -}} diff --git a/layouts/rss.xml b/layouts/rss.xml @@ -0,0 +1,65 @@ +{{- $authorEmail := "" }} +{{- with site.Params.author }} + {{- if reflect.IsMap . }} + {{- with .email }} + {{- $authorEmail = . }} + {{- end }} + {{- end }} +{{- end }} + +{{- $authorName := "" }} +{{- with site.Params.author }} + {{- if reflect.IsMap . }} + {{- with .name }} + {{- $authorName = . }} + {{- end }} + {{- else }} + {{- $authorName = . }} + {{- end }} +{{- end }} + +{{- $pctx := . }} +{{- if .IsHome }} + {{ $pctx = .Site }} +{{ end }} + +{{- $pages := slice }} +{{- if or $.IsHome $.IsSection }} + {{- $pages = $pctx.RegularPages }} +{{- else }} + {{- $pages = $pctx.Pages }} +{{- end }} + +{{- $limit := .Site.Config.Services.RSS.Limit }} +{{- if ge $limit 1 }} + {{- $pages = $pages | first $limit }} +{{- end }} + +{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }} + +<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"> + <channel> + <title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{ . }} @ {{ end }}{{ .Site.Title }}{{ end }}</title> + <link>{{ .Permalink }}</link> + <description>{{ T "recent" }} {{ if ne .Title .Site.Title }}{{ with .Title }}in {{ . }} {{ end }}{{ end }}@ {{ .Site.Title }}</description> + <generator>Hugo</generator> + <language>{{ site.Language.Locale }}</language>{{ with $authorEmail }} + <managingEditor>{{.}}{{ with $authorName }} ({{ . }}){{ end }}</managingEditor>{{ end }}{{ with $authorEmail }} + <webMaster>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</webMaster>{{ end }}{{ with .Site.Copyright }} + <copyright>{{ . }}</copyright>{{ end }}{{ if not .Date.IsZero }} + <lastBuildDate>{{ (index $pages.ByLastmod.Reverse 0).Lastmod.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }} + {{- with .OutputFormats.Get "RSS" }} + {{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }} + {{- end }} + {{- range $pages }} + <item> + <title>{{ .Title }}</title> + <link>{{ .Permalink }}</link> + <pubDate>{{ .PublishDate.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> + {{- with $authorEmail }}<author>{{ . }}{{ with $authorName }} ({{ . }}){{ end }}</author>{{ end }} + <guid>{{ .Permalink }}</guid> + <description>{{ .Summary | transform.XMLEscape | safeHTML }}</description> + </item> + {{- end }} + </channel> +</rss> diff --git a/layouts/section.html b/layouts/section.html @@ -0,0 +1,22 @@ +{{ define "main" }} + {{- if .Content }} + <article> + <h1>{{ .Title }}</h1> + {{- with .Site.GetPage "section" "posts" -}} + {{- with .OutputFormats.Get "RSS" -}} + <a class="rss-link" href="{{ .RelPermalink }}">{{ T "rssFeed" }}</a> + {{- end -}} + {{- end }} + {{ .Content -}} + </article> + {{ if .RegularPages }} + <hr> + {{ end }} + {{- end }} + <div class="previews"> + {{ range $i, $page := (sort .RegularPages ".Date" "desc") -}} + {{- if $i }}<hr class="preview-seperator">{{ end }} + {{- partial "preview.html" $page -}} + {{ end -}} + </div> +{{ end }} diff --git a/layouts/taxonomy.html b/layouts/taxonomy.html @@ -0,0 +1,11 @@ +{{ define "main" }} + <article> + <h1>{{ .Title }}</h1> + {{ .Content -}} + </article> + <ul class="tags-list"> + {{- range .Pages -}} + <li>{{- partial "tag.html" . -}}</li> + {{- end -}} + </ul> +{{ end }} diff --git a/layouts/term.html b/layouts/term.html @@ -0,0 +1,24 @@ +{{ define "main" }} + <article class="term-article"> + <h1>{{ .Title }}</h1> + {{ with .Content -}} + {{ . }} + <hr> + {{ end }} + </article> + <div class="pages"> + {{- range .Pages }} + <div class="page-item" id="{{ .File.ContentBaseName }}"> + {{ $dateTime := .Date | time.Format "2006-01-02T15:04:05-07:00" -}} + {{- $dateF := .Date | time.Format ":date_medium" -}} + {{- $timeF := .Date | time.Format ":time_short" -}} + <div> + <span><time datetime="{{ $dateTime }}">{{ $dateF }} {{ $timeF }}</time>:</span> + </div> + <div> + <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a> + </div> + </div> + {{- end }} + </div> +{{ end }}