Welcome to mirror list, hosted at ThFree Co, Russian Federation.

see-also.html « block « partials « layouts - github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 2c7f716281d49589b4cfca9d22f21799bd4f1100 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
{{ $posts := where site.RegularPages "Section" "blog"}}
{{ $related :=  site.RegularPages.RelatedIndices . "tags" | first 3 }}
{{ if eq (len $related) 0 }}
{{ $related = $posts.ByDate | first 3 }}
{{ end }}
{{ with $related }}
<aside class="see-also" style="margin:0">
    <span class="see-title">{{ T `seeAlso` }}</span>
    <ul>
        {{ range . }}
        <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
        {{ end }}
    </ul>
    {{ end }}
</aside>