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

index.html « layouts - github.com/AmazingRise/hugo-theme-diary.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f4048712debb4f578f3a5c4dfaa96d7b32e0ea40 (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

{{ define "main" }}

<div ref="streamContainer" class="stream-container">
    <div class="post-list-container post-list-container-no-background">
        {{range .Paginator.Pages}}
            {{if and (.IsPage) (.Params.date)}}
            <a href="{{.Permalink}}" class="a-block">
                <div class="post-item-wrapper">
                    <div class="post-item post-item-no-divider">
                        <div class="post-item-info-wrapper">
                            <div class="post-item-title">
                                {{.Title}}
                            </div>
                            <div class="post-item-summary">
                                {{.Description}}
                            </div>
                            {{ partial "post-item-meta.html" . }}
                        </div>
                        {{ $featured_image := .Params.featured_image }}
                        {{ if $featured_image }}
                            {{ $image := .Resources.GetMatch (.Params.featured_image) }}
                            <div class="post-item-image-wrapper">
                            <div class="post-item-image"
                            {{ if $image }}
                                 style="background-image: url('{{ $image.Permalink }}')"
                            {{ else }}
                                 style="background-image: url('{{ $featured_image | absURL}}')"
                            {{ end }}
                            ></div>
                            </div>
                        {{ end }}
                    </div>
                </div>
            {{ end }}
        {{ end }}
        </a>
    </div>
</div>
{{ end }}