Added in the 'latest' command and display latest post in terminal boot

This commit is contained in:
Dan 2025-12-08 14:52:34 +00:00
parent 99e89f7e84
commit e58896cc52
5 changed files with 40 additions and 2 deletions

View file

@ -420,4 +420,11 @@ unix 3 [ ] STREAM CONNECTED 50896 /run/user/1000/bus
</div>
</div>
</div>
{{ end }}
{{ range first 1 (where .Site.RegularPages "Type" "posts") }}
<div id="latest-post">
<div id="latest-post-link">{{ .Permalink }}</div>
<div id="latest-post-title">{{ .Title }}</div>
<div id="latest-post-date">{{ .Date.Format "Jan 2, 2006" }}</div>
</div>
{{ end }} {{ end }}