Files
.gitea
assets
content
data
layouts
_default
abiturienten
about
alumninetzwerk
anmeldeformular
anmeldung
author
begabte
cantorfora
cantorpreis
forms
ganztagsangebote
kontakt
pages
partials
authors.html
blog-sidebar.html
card-article.html
card-btn.html
card-category.html
collapsible.html
download.html
filter-controls.html
footer.html
ganztag.html
head.html
header-contest.html
header.html
icon-element.html
info.html
modal.html
opengraph.html
page-header.html
pagination.html
preloader.html
related.html
summary.html
termin.html
tile-modals.html
twitter.html
projektwoche
schulchronik
shortcodes
superhaufen
termine
wettbewerbe
404.html
index.html
robots.txt
static
.gitignore
.mailmap
LICENSE
config.yml
gcg-website/layouts/partials/blog-sidebar.html
2023-07-29 13:16:25 +02:00

41 lines
1.6 KiB
HTML

<aside class="col-lg-4 mt-4 mt-lg-0" data-pagefind-ignore="all">
<div class="mb-4">
<h4 class="mb-4">Kategorien</h4>
{{ $transliterations := .Site.Data.transliterations.transliterations }}
{{ if isset .Site.Taxonomies "categories" }}
{{ if not (eq (len .Site.Taxonomies.categories) 0) }}
<div class="tag-list">
{{ range $name, $items := .Site.Taxonomies.categories }}
<a href="{{ `categories/` | relURL }}{{ $name | urlize | lower }}">{{ if (index $transliterations $name) }}{{ index $transliterations $name }}{{ else }}{{ $name | title }}{{end}}</a>
{{ end }}
</div>
{{ end }}
{{ end }}
</div>
<div class="mb-4">
<h4 class="mb-4">Tags</h4>
{{ if isset .Site.Taxonomies "tags" }}
{{ if not (eq (len .Site.Taxonomies.tags) 0) }}
<div class="tag-list">
{{ range $name, $items := .Site.Taxonomies.tags }}
<a href="{{ `tags/` | relURL }}{{ $name | urlize | lower }}">{{ $name }}</a>
{{ end }}
</div>
{{ end }}
{{ end }}
</div>
<div class="bg-white">
<h4 class="mb-4">Neuste Beiträge</h4>
{{ range first 5 ( where .Site.Pages "Type" "post" )}}
<div class="d-flex border-bottom border-color pb-3 mb-3">
<a href="{{ .Permalink }}"><img class="me-3 post-thumb-sm" src="{{ .Params.image | absURL }}"></a>
<div class="flex-grow-1 min-w-0 d-flex flex-column justify-content-between">
<a href="{{ .Permalink }}">
<h5 class="text-truncate">{{ .Title }}</h5>
</a>
{{ time.Format "02. Jan 2006" .PublishDate }}
</div>
</div>
{{ end }}
</div>
</aside>