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

index.html « layouts - github.com/4ever9/less.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 16274ff7be9891a29f3aa60ce6a78af9614aa266 (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
{{ define "main" }}
    <div class="container">
        <div class="row">
            <div class="column is-md-8 is-offset-md-2 main">
                {{ range (.Site.RegularPages.GroupByDate "2006") }}
                    <div class="posts">
                        <div class="year">{{ .Key }}</div>
                        {{ range .Pages }}
                            <div class="post">
                                <div class="post-left">
                            <span class="post-date">
                                {{ .Date.Format "01-02" }}
                            </span>
                                </div>
                                <div class="post-right">
                                    <a class="post-title" href="{{.Permalink}}">
                                        {{.Title}}
                                    </a>
                                    <div class="post-summary">
                                        {{ $length := (len .Summary) }}
                                        {{ if gt $length 0 }}
                                            {{ if gt $length 100 }}
                                                {{ $length = 100 }}
                                            {{ end }}
                                            {{ slicestr .Summary 0 $length | plainify | htmlUnescape }}
                                        {{ end }}
                                    </div>
                                </div>
                            </div>
                        {{ end }}
                    </div>
                {{ end }}
            </div>
        </div>
    </div>
{{ end }}