~huyngo/huyngo.srht.site

huyngo.srht.site/layouts/index.html -rw-r--r-- 544 bytes
b3c67a48Ngô Ngọc Đức Huy Fix image name 13 days ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
{{ define "main" }}
    <div class="homepage-content">
        {{ .Content }}
        <ul>
            {{ range .Site.Sections }}
            <li> <a href="{{ .Permalink }}">{{ i18n .Title }}</a> </li>
            {{ end }}
        </ul>
    </div>

    <div class="articles h-feed">
        {{ $pages := where site.RegularPages "Type" "in" site.Params.mainSections }}
        {{ range (.Paginate $pages).Pages }}
            {{ partial "post-summary.html" . }}
        {{ end }}
        {{ partial "pagination.html" . }}
    </div>

{{ end }}