1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-12-28 11:02:10 +00:00
seirdy.one/layouts/partials/posts.html
Rohan Kumar 37b9063186
Semantics: TOC and post-list <ol>
Order is significant for the ToC and post list so make them ordered.

I opted to make post-lists a reversed list, so I don't end up having
every post change its number every time I post.
2022-04-04 19:13:07 -07:00

25 lines
1.5 KiB
HTML

<section class="h-feed hfeed" itemscope itemtype="https://schema.org/DataFeed">
{{ if eq .RelPermalink "/posts.html" -}}
<h2 class="p-name" itemprop="name headline" id="posts">Posts</h1>
{{ else -}}
<h2 class="p-name" itemprop="name" id="posts">Posts</h2>
{{ end -}}
<p>I edit some of these posts quite often; some are updated indefinitely. Check the "updated" timestamps.</p>
<p><em>Timestamp format: <code>YYYY-MM-DD</code>, as per <cite><a href="https://www.ietf.org/rfc/rfc3339.txt">RFC 3339</a></cite> and <cite><a href="https://xkcd.com/1179/">ISO 8601</a></cite></em></p>
<ol class="unstyled-list" reversed>
{{- range where site.RegularPages "Type" "in" site.Params.mainSections }}
<li>
<article class="h-entry hentry" itemprop="dataFeedElement" itemscope itemtype="https://schema.org/BlogPosting https://schema.org/DataFeedItem">
<h3 itemprop="name headline" class="p-name entry-title">
<a href="{{ .Permalink }}" itemprop="url" class="u-url url" rel="bookmark">
{{ .Title -}}
</a>
</h3>
Posted <time itemprop="datePublished" class="dt-published published" datetime="{{ .Date.Format "2006-01-02 15:04:05Z07:00" }}">{{ .Date.Format "2006-01-02" }}</time>, updated
<time itemprop="dateModified" class="dt-updated updated" datetime="{{ .Lastmod.Format "2006-01-02 15:04:05Z07:00" }}">{{ .Lastmod.Format "2006-01-02" }}</time>
<p class="p-summary entry-summary" itemprop="description">{{ .Description }}</p>
</article>
</li>
{{- end }}
</ul>
</section>