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

see-also.html « shortcodes « layouts - github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 13406b303e8d345c70309bc712c656fb3a81dcd4 (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 .Page "tags" | first 3 }}
{{ if eq (len $related) 0 }}
{{ $related = $posts.ByDate | first 3 }}
{{ end }}
{{ with $related }}
<aside class="see-also">
    <span class="see-title">{{ T `seeAlso` }}</span>
    <ul>
        {{ range . }}
        <li><a href="{{ .RelPermalink }}">{{ .Title }}</a></li>
        {{ end }}
    </ul>
    {{ end }}
</aside>