mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-10 00:12:09 +00:00
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.
This commit is contained in:
parent
48a18e22c5
commit
37b9063186
2 changed files with 3 additions and 2 deletions
|
@ -68,7 +68,7 @@ posts = "/:year/:month/:day/:filename"
|
||||||
unsafe = true
|
unsafe = true
|
||||||
|
|
||||||
[markup.tableOfContents]
|
[markup.tableOfContents]
|
||||||
ordered = false
|
ordered = true
|
||||||
endLevel = 2
|
endLevel = 2
|
||||||
|
|
||||||
# lifted from https://git.sr.ht/~sircmpwn/drewdevault.com
|
# lifted from https://git.sr.ht/~sircmpwn/drewdevault.com
|
||||||
|
|
|
@ -4,8 +4,9 @@
|
||||||
{{ else -}}
|
{{ else -}}
|
||||||
<h2 class="p-name" itemprop="name" id="posts">Posts</h2>
|
<h2 class="p-name" itemprop="name" id="posts">Posts</h2>
|
||||||
{{ end -}}
|
{{ 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>
|
<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">
|
<ol class="unstyled-list" reversed>
|
||||||
{{- range where site.RegularPages "Type" "in" site.Params.mainSections }}
|
{{- range where site.RegularPages "Type" "in" site.Params.mainSections }}
|
||||||
<li>
|
<li>
|
||||||
<article class="h-entry hentry" itemprop="dataFeedElement" itemscope itemtype="https://schema.org/BlogPosting https://schema.org/DataFeedItem">
|
<article class="h-entry hentry" itemprop="dataFeedElement" itemscope itemtype="https://schema.org/BlogPosting https://schema.org/DataFeedItem">
|
||||||
|
|
Loading…
Reference in a new issue