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

list.html « _default « layouts - github.com/hadisinaee/avicenna.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a0d86240a8ffd0f3f0bf2957f861e15d8738d4e7 (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
{{ define "main" }}

{{ partial "blog/blog_navbar.html" (dict "1" "about" ) }}

{{ $paginator := .Paginate (where .Data.Pages "Type" "blog") }}
{{ $paginator := .Paginator }}

<h1>All Posts</h1>

{{ range $paginator.Pages.ByPublishDate.Reverse }}

<p>
    <!-- start of each blog post -->
    {{ partial "blog/blog_post_header.html" . }}

    {{ partial "blog/blog_post_body.html" . }}


    <!-- end each blog post -->
</p>

{{ end }}

<!-- If there's more than one page. -->
{{ if gt $paginator.TotalPages 1 }}

{{ template "_internal/pagination.html" . }}

{{ end }}


{{ end }}