sidebar enrichments
This commit is contained in:
parent
9bc91500d0
commit
de41337b22
5 changed files with 42 additions and 4 deletions
|
@ -11,4 +11,4 @@ draft: false
|
||||||
weight: 50
|
weight: 50
|
||||||
---
|
---
|
||||||
|
|
||||||
### First Headline
|
## First Headline
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
color: $blue;
|
color: $purple;
|
||||||
}
|
}
|
||||||
|
|
||||||
p {
|
p {
|
||||||
|
|
|
@ -8,6 +8,9 @@ about:
|
||||||
articles:
|
articles:
|
||||||
other: Artikel
|
other: Artikel
|
||||||
|
|
||||||
|
articles-in-section:
|
||||||
|
other: Alle Artikel
|
||||||
|
|
||||||
author:
|
author:
|
||||||
other: Autor
|
other: Autor
|
||||||
|
|
||||||
|
@ -23,7 +26,7 @@ domains:
|
||||||
Domains:
|
Domains:
|
||||||
other: Bereiche
|
other: Bereiche
|
||||||
|
|
||||||
domains:
|
domain:
|
||||||
other: Bereich
|
other: Bereich
|
||||||
|
|
||||||
next:
|
next:
|
||||||
|
@ -41,6 +44,9 @@ prev:
|
||||||
recentArticles:
|
recentArticles:
|
||||||
other: Aktuelle Artikel
|
other: Aktuelle Artikel
|
||||||
|
|
||||||
|
related:
|
||||||
|
other: Ähnliche Artikel
|
||||||
|
|
||||||
Teaser:
|
Teaser:
|
||||||
other: Hintergrund
|
other: Hintergrund
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,9 @@ about:
|
||||||
articles:
|
articles:
|
||||||
other: Articles
|
other: Articles
|
||||||
|
|
||||||
|
articles-in-section:
|
||||||
|
other: All articles
|
||||||
|
|
||||||
author:
|
author:
|
||||||
other: Author
|
other: Author
|
||||||
|
|
||||||
|
@ -42,6 +45,9 @@ prev:
|
||||||
recentArticles:
|
recentArticles:
|
||||||
other: Recent Posts
|
other: Recent Posts
|
||||||
|
|
||||||
|
related:
|
||||||
|
other: Related Posts
|
||||||
|
|
||||||
Teaser:
|
Teaser:
|
||||||
other: Teaser
|
other: Teaser
|
||||||
|
|
||||||
|
|
|
@ -31,10 +31,35 @@
|
||||||
</div>
|
</div>
|
||||||
{{- end }}
|
{{- end }}
|
||||||
|
|
||||||
|
{{ with .Params.Topics -}}
|
||||||
|
<div class="card mt-3">
|
||||||
|
<div class="card-header">
|
||||||
|
<h4 class="card-text">{{ i18n "related" }}</h4>
|
||||||
|
</div>
|
||||||
|
<div class="card-body">
|
||||||
|
<ul id="topics" class="list-inline">
|
||||||
|
{{ range (where $site.RegularPages "Params.topics" "intersect" .) }}
|
||||||
|
<li>
|
||||||
|
<a href="{{ .Permalink }}"
|
||||||
|
class="text-decoration-none">{{ .Title }}
|
||||||
|
{{ if .Date -}}
|
||||||
|
<small>{{ .Date.Format (i18n "dateFormat") }}</small>
|
||||||
|
{{- else if .Params.Teaser -}}<small>{{ .Params.Teaser }}</small>
|
||||||
|
{{- else -}}<small>{{ .Summary }}</small>
|
||||||
|
{{- end }}
|
||||||
|
</a>
|
||||||
|
</li>
|
||||||
|
{{ end }}
|
||||||
|
</ul>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
|
{{ if .Site.Params.showSectionArticles -}}
|
||||||
<div class="card mt-3">
|
<div class="card mt-3">
|
||||||
{{- $section := or .Section "posts" -}}
|
{{- $section := or .Section "posts" -}}
|
||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
<h4 class="card-text">{{i18n $section}}</h4>
|
<h4 class="card-text">{{ or (i18n $section) (i18n "articles-in-section") }}</h4>
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
<ul class="list-inline">
|
<ul class="list-inline">
|
||||||
|
@ -53,5 +78,6 @@
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{{- end }}
|
||||||
|
|
||||||
</div>
|
</div>
|
Loading…
Add table
Reference in a new issue