summaryrefslogtreecommitdiffstats
path: root/themes/rusticus/layouts/partials/home/front-page-summary.html
blob: 325a59f8a5e1e1d41555a96a579a8eeca8912e73 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<ul class="front-page-summary">
    {{ $page := .context.Site.GetPage "section" .section }}
    {{ $pages := $page.Pages.ByExpiryDate }}
    {{ if eq .section "blog" }}
        {{ $pages = $page.Pages.ByDate.Reverse }}
    {{ end }}
    {{ range first 3 $pages }}
        <li hugo-nav="{{ .RelPermalink}}">
            <a href="{{ .Permalink}}">
                <h3>{{ .LinkTitle }}</h3>
                <p>{{ .Summary }}</p>
            </a>
        </li>
    {{ end }}
</ul>