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