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

list.html « _default « layouts - github.com/pavel-pi/kiss-em.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 238f12616dfe90a405a35a3da292fcb1ea816373 (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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
<!-- Header -->
{{ partial "header" . }}

<!-- Navigation -->
{{ partial "nav" . }}


<!-- Microblog Area -->
{{ if .Site.Params.microblog.enable }}
<section class="section-highlight">
    
    <div  class ="container">
        
        <a href="/micro"><h2 class="areatitle">{{ i18n "microblog_title" }}</h2></a>

        <!-- show "number" of latest "micro" type articles -->
        {{ range first .Site.Params.microblog.number (where .Site.RegularPages.ByDate.Reverse "Type" "in" "micro") }}

            <!-- Article Tags -->
            <div class="subtitle tags is-6 is-pulled-right">
                {{ if .Params.tags }}
                {{ partial "tags" .Params.tags }}
                {{ end }}
                </div>

            <!-- Date above Article Title-->
            {{if not .Date.IsZero }}
                <h2 class="subtitle is-6">
                    <!-- Consider german month names -->
                    {{if eq .Site.Language.Lang "de" }}
                        {{ .Date.Day }}. {{ index $.Site.Data.monate (printf "%d" .Date.Month) }} {{ .Date.Year }}, {{ .Date.Format "15:04" }}                 
                    {{ else }}
                        {{ .Date.Format "January 2, 2006 | 15:04" }}
                    {{ end }}
                </h2>
            {{ end }}

            <!-- Article Title -->
            <h1 class="title">
                <a href="{{ .Permalink }}">{{ .Title }}</a>
            </h1>

        <!-- End loop -->
        {{ end }}
    
    </div>
</section>
{{ end }}

<!-- Blog Area -->
<section class="section">

    <div class="container">

        
        <a href="/blog"><h2 class="areatitle">{{ i18n "blog_title" }}</h2></a>

        <!-- Loop through all posts filtered by type "article" -->
        {{ $paginator := .Paginate (where .Site.RegularPages.ByDate.Reverse "Type" "in" "blog") }}
        {{ range .Paginator.Pages }}

            <article>

                <!-- Article Tags -->
                <div class="subtitle tags is-6 is-pulled-right">
                    {{ if .Params.tags }}
                    {{ partial "tags" .Params.tags }}
                    {{ end }}
                  </div>

                <!-- Date above Article Title-->
                {{if not .Date.IsZero }}
                    <h2 class="subtitle is-6">
                        <!-- Consider german month names -->
                        {{if eq .Site.Language.Lang "de" }}
                            {{ .Date.Day }}. {{ index $.Site.Data.monate (printf "%d" .Date.Month) }} {{ .Date.Year }}, {{ .Date.Format "15:04" }}                 
                        {{ else }}
                            {{ .Date.Format "January 2, 2006 | 15:04" }}
                        {{ end }}
                    </h2>
                {{ end }}


                <!-- Article Title -->
                <h1 class="title">
                    <a href="{{ .Permalink }}">{{ .Title }}</a>
                </h1>

                <div class="content">
                    
                    <!-- Article Summary -->
                    {{ .Summary | plainify | safeHTML }}
                
                    <!-- "Read More" Button-->
                    <a class="button is-link" href="{{ .Permalink }}" style="height:28px">{{ i18n "read_more" }}</a>

                </div>

            </article>

        <!-- End loop -->
        {{ end }}

    </div>
</section>




<!-- "Older Posts" / "Newer Posts" Buttons -->
{{ partial "page-navigation" . }}

<!-- Footer -->
{{ partial "footer" . }}