2022-12-15 10:42:28 +01:00
|
|
|
<aside class="col-lg-4 order-4 order-lg-2">
|
2022-03-18 13:35:57 +01:00
|
|
|
<div class="bg-white mb-5">
|
|
|
|
<h4 class="mb-4">{{ i18n "categories" }}</h4>
|
|
|
|
{{- if isset .Site.Taxonomies "categories" }}
|
|
|
|
{{- if not (eq (len .Site.Taxonomies.categories) 0) }}
|
|
|
|
<ul class="list-unstyled">
|
|
|
|
{{- range $name, $items := .Site.Taxonomies.categories }}
|
2023-01-30 20:00:04 +01:00
|
|
|
<li class="border-bottom"><a href="{{ `categories/` | relLangURL }}{{ $name | urlize | lower }}" class="d-block pb-3 mt-3">{{ $name | humanize | title }}</a></li>
|
2022-03-18 13:35:57 +01:00
|
|
|
{{- end }}
|
|
|
|
</ul>
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
</div>
|
|
|
|
<div class="bg-white mb-5">
|
|
|
|
<h4 class="mb-4">{{ i18n "tags" }}</h4>
|
|
|
|
{{- if isset .Site.Taxonomies "tags" }}
|
|
|
|
{{- if not (eq (len .Site.Taxonomies.tags) 0) }}
|
|
|
|
<ul class="list-inline tag-list">
|
|
|
|
{{- range $name, $items := .Site.Taxonomies.tags }}
|
2022-10-19 18:15:01 +02:00
|
|
|
<li class="list-inline-item mb-2"><a href="{{ `tags/` | relLangURL }}{{ $name | urlize | lower }}">{{ $name }}</a></li>
|
2022-03-18 13:35:57 +01:00
|
|
|
{{- end }}
|
|
|
|
</ul>
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
</div>
|
|
|
|
<div class="bg-white">
|
|
|
|
<h4 class="mb-4">{{ i18n "latest_article" }}</h4>
|
|
|
|
{{ range first 3 ( where .Site.Pages "Type" "post" )}}
|
|
|
|
<div class="media border-bottom border-color pb-3 mb-3">
|
|
|
|
<a href="{{ .Permalink }}"><img class="mr-3 post-thumb-sm" src="{{ .Params.Image | absURL }}"></a>
|
|
|
|
<div class="media-body">
|
|
|
|
<a href="{{ .Permalink }}">
|
|
|
|
<h5 class="mt-0">{{ .Title }}</h5>
|
|
|
|
</a>
|
2023-02-22 12:32:28 +01:00
|
|
|
{{ time.Format "02. Jan 2006" .PublishDate }}
|
2022-03-18 13:35:57 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
</div>
|
2022-06-20 20:33:12 +02:00
|
|
|
</aside>
|