2021-10-09 15:16:24 -05:00
|
|
|
<div class="post">
|
|
|
|
<h2 class="post-title">
|
2021-10-11 09:52:24 -05:00
|
|
|
{{ with .Parent.Params.icon }}{{ partialCached "icon.html" . . }}{{ end }}
|
2021-10-09 15:16:24 -05:00
|
|
|
<a href="{{ .Permalink }}">{{ .Title | markdownify }}</a>
|
2021-10-11 09:52:24 -05:00
|
|
|
{{ if .Draft }}{{ partialCached "icon.html" "edit" "edit" }}{{ end }}
|
2021-10-09 15:16:24 -05:00
|
|
|
</h2>
|
|
|
|
|
2021-10-09 18:08:27 -05:00
|
|
|
{{ partial "post-metadata.html" . }}
|
2021-10-09 15:16:24 -05:00
|
|
|
|
|
|
|
{{ with .Resources.GetMatch "feature" }}
|
|
|
|
{{ if eq .MediaType.MainType "image" }}
|
|
|
|
<div class="post-media">
|
|
|
|
<img src="{{ .Permalink }}" alt="{{ .Title }}" />
|
|
|
|
</div>
|
|
|
|
{{ else if eq .MediaType.MainType "video" }}
|
|
|
|
<div class="post-media">
|
|
|
|
<video controls>
|
|
|
|
<source src="{{ .Permalink }}" alt="{{ .Title }}">
|
|
|
|
</video>
|
|
|
|
</div>
|
|
|
|
{{ end }}
|
|
|
|
{{ end }}
|
|
|
|
|
|
|
|
<div class="post-description">
|
|
|
|
{{ if .Description }}
|
2021-10-09 16:02:26 -05:00
|
|
|
<p>
|
|
|
|
{{ .Description | markdownify }}
|
|
|
|
</p>
|
2021-10-09 15:16:24 -05:00
|
|
|
{{ else }}
|
2021-10-09 15:23:33 -05:00
|
|
|
{{ .Summary }}
|
2021-10-09 15:16:24 -05:00
|
|
|
{{ end }}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="readmore">
|
2021-10-11 18:24:14 -05:00
|
|
|
<a href="{{ .Permalink }}">{{ i18n "read_more" }} →</a>
|
2021-10-09 15:16:24 -05:00
|
|
|
</div>
|
|
|
|
</div>
|