2020-05-11 08:26:35 +02:00
|
|
|
<h3>{{ i18n "moreFrom" .Site.Title }} »</h3>
|
2020-05-10 16:56:41 +02:00
|
|
|
<ul class='posts aside'>
|
|
|
|
{{- $kin := (where .Site.RegularPages ".Params.tags" "intersect" .Params.tags) }}
|
|
|
|
{{- $siblings := (where $kin ".Title" "!=" .Title) }}
|
|
|
|
{{- with $siblings }}
|
|
|
|
{{- range first 2 . }}
|
|
|
|
{{- partial "excerpt" . }}
|
|
|
|
{{- end }}
|
|
|
|
{{- else }}
|
|
|
|
{{- $kin := (where .Site.RegularPages "Section" .Section) }}
|
|
|
|
{{- $siblings := (where $kin ".Title" "!=" .Title) }}
|
|
|
|
{{- range first 2 $siblings }}
|
|
|
|
{{- partial "excerpt" . }}
|
|
|
|
{{- end }}
|
|
|
|
{{- end }}
|
|
|
|
</ul>
|