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: 04da3f9e0fc57a7284995636673caec1bc790d53 (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
{{ partial "header.html" . }}

<div class="container">
    <div class="row">
        <div class="column is-md-8 is-offset-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 (len .Summary) 100 }}
                                        {{ $length = 100 }}
                                    {{ end }}
                                    {{ slicestr .Summary 0 $length | plainify | htmlUnescape }}
                                </div>
                            </div>
                        </div>
                    {{ end }}
                </div>
            {{ end }}
        </div>
    </div>
</div>

{{ partial "footer.html" . }}