Merge missing translations (#10355)
* Merge missing translations * Disable Norwegian
This commit is contained in:
committed by
k8s-ci-robot
parent
4b77af7466
commit
32014f94b3
@@ -1,5 +1,14 @@
|
||||
{{ $pages := .CurrentSection.Pages }}
|
||||
{{ with $.Site.Params.language_alternatives }}
|
||||
{{ range . }}
|
||||
{{ with (where $.CurrentSection.Translations ".Lang" . ) }}
|
||||
{{ $p := index . 0 }}
|
||||
{{ $pages = $pages | lang.Merge $p.Pages }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
<div class="panel-group" id="blog-archive">
|
||||
{{ range $i, $e := .CurrentSection.Pages.GroupByPublishDate "2006" }}
|
||||
{{ range $i, $e := $pages.GroupByPublishDate "2006" }}
|
||||
<div class="panel panel-default">
|
||||
<div class="panel-heading">
|
||||
<h4 class="panel-title">
|
||||
@@ -11,7 +20,8 @@
|
||||
<div class="panel-body">
|
||||
<ul class="list-group">
|
||||
{{ range .Pages }}
|
||||
<li class="list-group-item"><a href="{{ .Permalink }}">{{ .LinkTitle }}</a> <span class="date">{{ .PublishDate.Format "Jan 2" }}</span> </li>
|
||||
{{ $isForeignLanguage := (ne .Lang $.Lang)}}
|
||||
<li class="list-group-item"><a href="{{ .Permalink }}"{{ if $isForeignLanguage }} target="_blank" {{ end }}>{{ .LinkTitle }}</a> <span class="date">{{ .PublishDate.Format "Jan 2" }}</span>{{ if $isForeignLanguage }} <small>({{ .Lang | upper }})</small>{{ end }}</li>
|
||||
{{ end }}
|
||||
</ul>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user