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

index.html « layouts - github.com/uPagge/uBlogger.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 5fad69f9bcc125ea734ff5c6021bc08fba4f1f97 (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
{{- define "content" -}}
    <div class="page home">
        {{- /* Profile */ -}}
        {{- if .Site.Params.home.profile.enable -}}
            {{- partial "home/profile.html" . -}}
        {{- end -}}

        {{- /* Posts */ -}}
        {{- if ne .Site.Params.home.posts.enable false -}}
            {{- /* Paginate */ -}}
            {{- $paginator := where .Site.RegularPages "Type" "posts" -}}
            {{- if ne .Site.Params.home.posts.mode.defaultHiddenFromHomePage false -}}
                {{- $paginator = where $paginator "Params.hiddenfromhomepage" "!=" true -}}
            {{- else -}}
                {{- $paginator = where $paginator "Params.hiddenfromhomepage" false -}}
            {{- end -}}
            {{- with .Site.Params.home.posts.paginate -}}
                {{- $paginator = $.Paginate $paginator . -}}
            {{- else -}}
                {{- $paginator = $.Paginate $paginator -}}
            {{- end -}}
            {{- range $paginator.Pages -}}
                {{- .Render "summary" -}}
            {{- end -}}
            {{- partial "paginator.html" . -}}
        {{- end -}}
    </div>
{{- end -}}