anemone/layouts/partials/lastPost.html

18 lines
560 B
HTML
Raw Normal View History

2022-11-21 21:15:50 +00:00
{{ range .Site.RegularPages.ByPublishDate.Reverse | first 1 }}
<div class="lastPost">
<blockquote>
<p><strong class="metaData">{{ .Title }}</strong><br>
Published on: <time class="metaData">{{ dateFormat "02, Jan 2006" .Date }}</time></p>
{{ .Summary }}
{{ if .Truncated }}
<div class="postData">
<p><span class="metaData">{{ .WordCount }}</span> words,
<span class="metaData">{{ .ReadingTime}}</span> minute read.<br>
<a href="{{ .RelPermalink }}">Read more ⇲</a></p>
</div>
{{ end }}
</blockquote>
</div>
{{ end }}