bobatheme/layouts/_default/summary/post.html

24 lines
705 B
HTML
Raw Normal View History

2021-10-09 15:16:24 -05:00
<div class="post">
<h2 class="post-title">
{{ with .Parent.Params.icon }}{{ partial "icon.html" . }}{{ end }}
2021-10-09 15:16:24 -05:00
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
{{ if .Draft }}{{ partial "icon.html" "write" }}{{ end }}
2021-10-09 15:16:24 -05:00
</h2>
{{ partial "post-metadata/short.html" . }}
2021-10-09 15:16:24 -05:00
{{ with .Resources.GetMatch "feature" }}
<div class="post-media">
{{ partial "figure.html" (dict "src" . "border" true) }}
</div>
2021-10-09 15:16:24 -05:00
{{ end }}
<div class="post-description">
{{ partial "description-or-summary.html" . }}
2021-10-09 15:16:24 -05:00
</div>
<div class="readmore">
<a href="{{ .Permalink }}">{{ i18n "read_more" }} &rarr;</a>
2021-10-09 15:16:24 -05:00
</div>
</div>