2021-12-15 10:09:08 +00:00
|
|
|
<div class='shout card'>
|
|
|
|
<article class="h-entry shout">
|
|
|
|
<header>
|
|
|
|
{{ $postPermalink := .Permalink}}
|
2022-01-13 10:43:19 +00:00
|
|
|
<h2 class="p-name"><a href="{{ .Permalink }}" class="u-url">
|
|
|
|
{{ range $i, $e := .Params.tags -}}
|
2022-01-13 11:36:38 +00:00
|
|
|
{{- if $i -}} {{ end -}}
|
2022-01-13 10:43:19 +00:00
|
|
|
<a href='{{ "/tags/" | relLangURL }}{{ . | urlize }}'>#{{ $e | humanize }}</a>
|
|
|
|
{{- end -}}
|
|
|
|
</a></h2>
|
2021-12-15 10:09:08 +00:00
|
|
|
</header>
|
|
|
|
|
|
|
|
{{ with (index (.Resources.ByType "image") 0) }}
|
|
|
|
{{ $height := add .Height 0.0}}
|
|
|
|
{{ $ratio := div $height .Width}}
|
|
|
|
{{ $thumb := .Fit "540x360"}}
|
|
|
|
<div class="p-summary{{if gt $ratio 1 }} portrait {{else}} landscape {{end}}">
|
|
|
|
<div class="summary-image {{if gt $ratio 1 }} portrait {{else}} landscape {{end}}">
|
|
|
|
<a href="{{ $postPermalink }}"><img src="{{ $thumb.Permalink }}" alt="{{ .Title }}"> </a>
|
|
|
|
</div>
|
|
|
|
{{ else }}
|
|
|
|
<div class="p-summary">
|
|
|
|
{{ end }}
|
|
|
|
<div class="summary-text">
|
|
|
|
{{ .Summary }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="shout-source"></div>
|
|
|
|
|
|
|
|
<footer class='post-footer'>
|
|
|
|
<div class='footer-metadata'>
|
|
|
|
<span class="from p-author">From {{ if .Params.author }}<b>{{.Params.author}}</b> on{{ end }}</span>
|
|
|
|
<time class="dt-published" datetime="{{ .Date.Format `Jan 02 2006` }}">{{ .Date.Format "Jan 02, 2006" }}</time>
|
|
|
|
</div>
|
|
|
|
{{ if .Truncated }}
|
|
|
|
<div class="footer-filler"></div>
|
|
|
|
<div class='read-more'><a href="{{ .RelPermalink }}">Read More…</a></div>
|
|
|
|
{{ end }}
|
|
|
|
</footer>
|
|
|
|
</article>
|
|
|
|
</div>
|