sidebar improvements

This commit is contained in:
Helmut Merz 2020-08-31 15:05:05 +02:00
parent 1d88a13f8d
commit 53fc299a80
4 changed files with 22 additions and 10 deletions

View file

@ -18,3 +18,9 @@ code {
p { p {
font-family: $font-family-sans-serif; font-family: $font-family-sans-serif;
} }
.badge a {
color: $white;
font-weight: bold;
}

View file

@ -8,6 +8,9 @@ about:
articles: articles:
other: Artikel other: Artikel
articles-in-posts:
other: Alle Artikel
articles-in-section: articles-in-section:
other: Alle Artikel other: Alle Artikel

View file

@ -8,6 +8,9 @@ about:
articles: articles:
other: Articles other: Articles
articles-in-posts:
other: All posts
articles-in-section: articles-in-section:
other: All articles other: All articles

View file

@ -27,12 +27,12 @@
<h4 class="card-text">{{i18n "topics"}}</h4> <h4 class="card-text">{{i18n "topics"}}</h4>
</div> </div>
<div class="card-body"> <div class="card-body">
<ul id="topics" class="list-inline">
{{ range . -}} {{ range . -}}
{{ $page := $site.GetPage (printf "/topics/%s" .) }} {{ $page := $site.GetPage (printf "/topics/%s" .) }}
<li><a href="{{ $page.Permalink }}">{{ $page.Title }}</a> </li> <span class="badge badge-pill badge-secondary">
<a href="{{ $page.Permalink }}">{{ $page.Title }}</a>
</span>
{{- end }} {{- end }}
</ul>
</div> </div>
</div> </div>
{{- end }} {{- end }}
@ -67,7 +67,7 @@
<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">{{ or (i18n $section) (i18n "articles-in-section") }}</h4> <h4 class="card-text">{{ or (i18n (printf "articles-in-%s" $section)) (i18n "articles-in-section") }}</h4>
</div> </div>
<div class="card-body"> <div class="card-body">
<ul class="list-inline"> <ul class="list-inline">