summaryrefslogtreecommitdiffstats
path: root/layouts/_default/teaser.html
blob: 82ea767218c381dc39a69004c5a30cf4850b978a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<article class="post">
    {{/* TODO: partial "post-thumbnail.html" (dict "class" "list" "page" .) */}}
    <header>
        <h2 class="post-title">
            <a href="{{ .Permalink }}" rel="bookmark">{{ .Title }}</a>
        </h2>
        <p class="post-meta">
            {{- partial "post-meta/date.html" . -}}
        </p>
    </header>
    <p class="post-content">
        {{ .Summary }}
    </p>
    {{ if site.Params.readmore }}
        {{ if .Truncated }}
            <footer>
                <a href="{{ .RelPermalink }}" class="read-more">{{ i18n "more" }}</a>
            </footer>
        {{ end }}
    {{ end }}
</article>