summaryrefslogtreecommitdiffstats
path: root/layouts/_default/teaser.html
blob: 441d77933a451c49efc1cb127de18e5aeb4e1830 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<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>
        {{- partial "post-meta.html" . -}}
    </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>