add icons for post and update dates

This commit is contained in:
John Bowdre 2023-08-29 09:51:34 -05:00
parent 920df9834f
commit 9594d5db7e
2 changed files with 2 additions and 2 deletions

View file

@ -18,7 +18,7 @@
<header class="post__header">
<h1><a href="{{ .Permalink }}">{{ .Title | markdownify }}</a></h1>
<p class="post__meta">
<span class="date">{{ $postDate }}{{- if ne $postDate $updateDate }} [{{ $updateDate }}]{{ end }}</span>
<span class="date"><i class="fa-regular fa-note-sticky"></i>&nbsp;{{ $postDate }}{{- if ne $postDate $updateDate }} &nbsp; <i class="fa-regular fa-pen-to-square"></i>&nbsp;{{ $updateDate }}{{ end }}</span>
</p>
</header>

View file

@ -3,7 +3,7 @@
{{ if or (.Params.description) (.Params.date) }}
{{ if .Params.description }}<p>{{ .Params.description }}</p>{{ end }}
<p>
{{ with $postDate }}{{ . }}{{ end }}{{- if ne $postDate $updateDate }} [{{ $updateDate }}]{{ end }}
{{ with $postDate }}<i class="fa-regular fa-note-sticky"></i>&nbsp;{{ . }}{{ end }}{{- if ne $postDate $updateDate }}<br><i class="fa-regular fa-pen-to-square"></i>&nbsp;{{ $updateDate }}{{ end }}
</p>
<p>
{{- with .Params.tags -}}