24 lines
764 B
HTML
24 lines
764 B
HTML
|
<article>
|
||
|
<div class="article-details">
|
||
|
<h2 class="article-title">
|
||
|
<a href="{{ .Permalink }}">
|
||
|
{{- .Title -}}
|
||
|
</a>
|
||
|
</h2>
|
||
|
<footer class="article-time">
|
||
|
<time datetime='{{ .Date.Format "2006-01-02T15:04:05Z07:00" }}'>
|
||
|
{{- .Date.Format ( or .Site.Params.dateFormat "Jan 02, 2006" ) -}}
|
||
|
</time>
|
||
|
</footer>
|
||
|
</div>
|
||
|
|
||
|
{{ if .Params.image }}
|
||
|
{{- $image := partial "helper/image" . -}}
|
||
|
{{- $thumbnail := $image.Fill "120x120" -}}
|
||
|
|
||
|
<div class="article-image">
|
||
|
<img src="{{ $thumbnail.RelPermalink }}" width="{{ $thumbnail.Width }}"
|
||
|
height="{{ $thumbnail.Height }}" loading="lazy">
|
||
|
</div>
|
||
|
{{ end }}
|
||
|
</article>
|