redzuurdesem/themes/desem-swift-theme/layouts/partials/aside.html

19 lines
619 B
HTML
Raw Normal View History

2020-05-13 14:23:59 +02:00
{{- $kin := (where .Site.RegularPages ".Params.tags" "intersect" .Params.tags) }}
{{ if (ne (len $kin) 0) }}
<h3>{{ i18n "moreFrom" .Site.Title }} &raquo;</h3>
<ul class='posts aside'>
2020-05-10 16:56:41 +02:00
{{- $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 }}
2020-05-10 16:56:41 +02:00
{{- end }}
</ul>
2020-05-13 14:23:59 +02:00
{{ end }}