aboutsummaryrefslogtreecommitdiff
path: root/layouts/partials/list.html
blob: cd62507193501c77ef58bb791e9c3e310440c2a5 (plain) (blame)
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
<article>
    <header>
        <div class="row between-xs">
            <a href="{{ .RelPermalink }}">{{ .LinkTitle }}</a>
            {{ if .Date }}
            <span>
                {{- .Date | time.Format (or .Site.Params.dateFormat.published "02 Jan 2006") -}}
            </span>
            {{ end }}
        </div>
    </header>
        {{ if .Params.Image }}
            <img src="{{ .RelPermalink }}{{.Params.Image}}" />
        {{ end }}
        {{ if .Description }}
            {{ .Description }}
        {{ else }}
            {{ .Summary }}
            {{ if .Truncated }}
                <a href="{{ .RelPermalink }}">Далее...</a>
            {{ end }}
        {{ end }}
    <footer>
        {{ partial "terms.html" (dict "taxonomy" "tags" "page" .) }}
    </footer>
</article>