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

index.html « layouts - github.com/azmelanar/hugo-theme-pixyll.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: dc27fd50fa12dfeec23a91bb3505515efc9d961b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
{{ partial "head.html" . }}
<div class="site-wrap">
    {{ partial "header.html" . }}
    {{ if isset .Site.Params "description" }}
    <meta name="description" content="{{ .Site.Params.description }}">
    {{ end }}
    <div class="post p2 p-responsive wrap" role="main">
        <div class="measure">
            <div class="home">
                <div class="posts">
                    {{ if isset .Site.Params "paginate" }}
                        {{ $paginator := .Paginate (where .Site.RegularPages "Type" "in" .Site.Params.mainSections) .Site.Params.paginate }}
                        {{ range $paginator.Pages.ByDate.Reverse }}
                            {{ .Render "summary" }}
                        {{ end }}
                </div>
            </div>
            <div class="paginatin_area">
                        {{ partial "pagination.html" . }}
                <!--            {{ template "_internal/pagination.html" . }} -->
            </div>
                    {{ else }}
                        {{ range first 10 .Site.RegularPages.ByDate.Reverse }}
                            {{ if eq .Type "post" }}
                                {{ .Render "summary"}}
                            {{ end }}
                        {{ end }}
                    {{ end }}
                </div>
            </div>
        </div>
    </div>
</div>
{{ partial "footer.html" . }}