1
0
Fork 0
mirror of https://git.sr.ht/~seirdy/seirdy.one synced 2024-11-15 01:42:10 +00:00
seirdy.one/layouts/partials/posts.html

25 lines
1.3 KiB
HTML
Raw Normal View History

<section class="h-feed hfeed" itemscope itemtype="https://schema.org/DataFeed">
2020-12-01 01:19:33 +00:00
{{ if eq .RelPermalink "/posts.html" -}}
2022-03-20 23:27:11 +00:00
<h2 class="p-name" itemprop="name headline">Posts</h1>
{{ else -}}
2022-02-16 09:46:44 +00:00
<h2 class="p-name" itemprop="name">Posts</h2>
2022-03-20 23:27:11 +00:00
{{ end -}}
2022-02-26 09:05:44 +00:00
<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>
<ul class="unstyled-list">
{{- 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>
2022-03-08 06:44:45 +00:00
<p class="p-summary entry-summary" itemprop="description">{{ .Description }}</p>
</article>
</li>
{{- end }}
</ul>
2022-03-08 06:44:45 +00:00
</section>