Omphaloskepsis-2/layouts/shortcodes/comment.html

17 lines
1,019 B
HTML
Raw Normal View History

2023-08-07 22:23:46 +00:00
<li class="comment">
2023-08-22 10:14:33 +00:00
<article class="comment__body" itemprop="comment" itemscope itemtype="https://schema.org/Comment">
2023-08-07 22:23:46 +00:00
<header class="comment__header">
2023-08-22 10:14:33 +00:00
<h3 class="comment__author" itemprop="author">{{ .Params.author }}</h3>
{{- $publishDate := time .Params.publishDate -}}
<p class="comment__publish-date">
2024-07-23 08:08:36 +00:00
<time class="dt-published" datetime="{{ $publishDate.Format "2006-01-02T15:04:05-07:00" }}" itemprop="datePublished">{{ $publishDate.Format "January 2" }}<sup>{{ if in (slice 1 21 31) $publishDate.Day }}st{{ else if in (slice 2 22) $publishDate.Day}}nd{{ else if in (slice 3 23) $publishDate.Day }}rd{{ else }}th{{ end }}</sup>, 1{{ $publishDate.Format "2006" | lang.FormatNumberCustom 0 }}&nbsp;<abbr style="font-variant: small-caps; font-size: 0.8em;" title="Holocene Era">HE</abbr></time>
2023-08-22 10:14:33 +00:00
</p>
{{- with .Params.source -}}
<p class="comment__source">Source: {{ . }}</p>
{{- end -}}
2023-08-07 22:23:46 +00:00
</header>
2023-08-22 10:14:33 +00:00
{{- .Inner | markdownify -}}
2023-08-07 22:23:46 +00:00
</article>
</li>