Hugo-theme-stack/layouts/partials/article-list/default.html

16 lines
619 B
HTML
Raw Normal View History

2020-08-22 07:20:08 -04:00
<article class="{{ if .Params.image }}has-image{{ end }}">
{{ if .Params.image }}
{{- $image := partial "helper/image" . -}}
{{- $thumbnailNotDesktop := $image.Resize "x500 smart" -}}
<div class="article-image">
<a href="{{ .Permalink }}">
<img src="{{ $thumbnailNotDesktop.RelPermalink }}"
width="{{ $thumbnailNotDesktop.Width }}" height="{{ $thumbnailNotDesktop.Height }}" loading="lazy"
alt="Featured image of post {{ .Title }}" />
</a>
2020-08-22 07:20:08 -04:00
</div>
{{ end }}
{{ partial "article/components/details" . }}
2020-08-22 07:20:08 -04:00
</article>