various fixes on webmention and microformat layout

This commit is contained in:
Wouter Groeneveld 2021-03-19 20:43:23 +01:00
parent ad9a8ea81c
commit 7a80f0e49b
8 changed files with 110 additions and 14 deletions

View File

@ -52,7 +52,7 @@ Still, I think it is important that we as educators try to give students a head
As a student, I would be much more interested in an overview of the state of things than in the NP-completeness of a stupid friggin' sort algorithm I promptly forgot about when starting to program in the industry (oh hai, `Collections.sort()`).
But simply seeing is not yet believing: one needs to get ones hands dirty!
But simply seeing is not yet believing: one needs to get one's hands dirty!
## Preliminary course contents

View File

@ -10,7 +10,97 @@
"url": "https://www.jvt.me/mf2/2021/03/1bkre/",
"source": "https://www.jvt.me/mf2/2021/03/1bkre/",
"target": "https://brainbaking.com/post/2021/03/the-indieweb-mixed-bag/",
"publishedFromNow": "a day ago",
"publishedFromNow": "4 days ago",
"relativeTarget": "/post/2021/03/the-indieweb-mixed-bag/"
},
{
"author": {
"name": "Wouter Groeneveld",
"picture": "https://brainbaking.com/img/avatar.jpg"
},
"name": "@rsolva that's a lie indeed 😁 see https://brainba...",
"content": "@rsolva thats a lie indeed 😁 see https://brainbaking.com/post/2021/03/getting-rid-of-tracking-using-lineageos/ I use davx5 and it works flawlessly",
"published": "2021-03-13T09:58:00",
"type": "mention",
"url": "https://brainbaking.com/notes/2021/03/13h09m58s25/",
"source": "https://brainbaking.com/notes/2021/03/13h09m58s25/",
"target": "https://brainbaking.com/post/2021/03/getting-rid-of-tracking-using-lineageos/",
"publishedFromNow": "6 days ago",
"relativeTarget": "/post/2021/03/getting-rid-of-tracking-using-lineageos/"
},
{
"author": {
"name": "Wouter Groeneveld",
"picture": "https://brainbaking.com/img/avatar.jpg"
},
"name": "I've been fiddling with IndieWeb stuff the last week and all in all, I think it's a mixed...",
"content": "I've been fiddling with IndieWeb stuff the last week and all in all, I think it's a mixed bag: https://brainbaking.com/post/2021/03/the-indieweb-mixed-bag/@kev after I published it, I found out your \"removing support for indieweb\" post. Seems like we...",
"published": "2021-03-09T15:17:00",
"type": "mention",
"url": "https://brainbaking.com/notes/2021/03/09h15m17s30/",
"source": "https://brainbaking.com/notes/2021/03/09h15m17s30/",
"target": "https://brainbaking.com/post/2021/03/the-indieweb-mixed-bag/",
"publishedFromNow": "10 days ago",
"relativeTarget": "/post/2021/03/the-indieweb-mixed-bag/"
},
{
"author": {
"name": "Wouter Groeneveld",
"picture": "https://brainbaking.com/img/avatar.jpg"
},
"name": "Heads up RSS feed readers of brainbaking.com! Federated half-baked thoughts (https://brainbaking....",
"content": "Heads up RSS feed readers of brainbaking.com! Federated half-baked thoughts (https://brainbaking.com/notes/) are now integrated in /index.xml 🤓. Don't like that? Subscribe to /post/index.xml instead! Next up: webmentions, PESOS-ing of Goodreads revi...",
"published": "2021-03-03T16:00:00",
"type": "mention",
"url": "https://brainbaking.com/notes/2021/03/03h16m00s44/",
"source": "https://brainbaking.com/notes/2021/03/03h16m00s44/",
"target": "https://brainbaking.com/notes/",
"publishedFromNow": "16 days ago",
"relativeTarget": "/notes/"
},
{
"author": {
"name": "Wouter Groeneveld",
"picture": "https://brainbaking.com/img/avatar.jpg"
},
"name": "Heads up RSS feed readers of brainbaking.com! Federated half-baked thoughts (https://brainbaking....",
"content": "Heads up RSS feed readers of brainbaking.com! Federated half-baked thoughts (https://brainbaking.com/notes/) are now integrated in /index.xml 🤓. Don't like that? Subscribe to /post/index.xml instead! Next up: webmentions, PESOS-ing of Goodreads revi...",
"published": "2021-03-03T16:00:00",
"type": "mention",
"url": "https://brainbaking.com/notes/2021/03/03h16m00s44/",
"source": "https://brainbaking.com/notes/2021/03/03h16m00s44/",
"target": "http://brainbaking.com",
"publishedFromNow": "16 days ago",
"relativeTarget": ""
},
{
"author": {
"name": "Wouter Groeneveld",
"picture": "https://brainbaking.com/img/avatar.jpg"
},
"name": "@StampedingLonghorn @256 Don't forget the cleverly hidden Roland MT-32, a majestic piece of p...",
"content": "@StampedingLonghorn @256 Don't forget the cleverly hidden Roland MT-32, a majestic piece of pre-MIDI standardized era synthesizer. What else would you use to run Sierra Online games, and monkey1? I really need one for my 486… https://brainbaking.com/...",
"published": "2021-03-02T17:13:00",
"type": "mention",
"url": "https://brainbaking.com/notes/2021/03/02h17m13s27/",
"source": "https://brainbaking.com/notes/2021/03/02h17m13s27/",
"target": "https://brainbaking.com/post/2021/02/my-retro-desktop-setup/",
"publishedFromNow": "17 days ago",
"relativeTarget": "/post/2021/02/my-retro-desktop-setup/"
},
{
"author": {
"name": "Wouter Groeneveld",
"picture": "https://brainbaking.com/img/avatar.jpg"
},
"name": "I pulled the Google plug and installed LineageOS: https://brainbaking.com/post/2021/03/getting-ri...",
"content": "I pulled the Google plug and installed LineageOS: https://brainbaking.com/post/2021/03/getting-rid-of-tracking-using-lineageos/ Very impressed so far! Also rely on my own CalDAV server to replace GCalendar. Any others here running #lineageos for priv...",
"published": "2021-03-01T20:03:00",
"type": "mention",
"url": "https://brainbaking.com/notes/2021/03/01h20m03s35/",
"source": "https://brainbaking.com/notes/2021/03/01h20m03s35/",
"target": "https://brainbaking.com/post/2021/03/getting-rid-of-tracking-using-lineageos/",
"publishedFromNow": "18 days ago",
"relativeTarget": "/post/2021/03/getting-rid-of-tracking-using-lineageos/"
}
]

View File

@ -69,15 +69,18 @@
<div class="freshly-baked">
{{ $paginator := .Paginate (where .Site.Pages "Type" "post") 4 }}
{{ range $paginator.Pages.ByDate.Reverse }}
<article>
{{ .Date.Format (.Site.Params.dateFormat | default "2 January 2006") | $.Scratch.Set "subtitle" }}
<article class="h-entry">
{{ .Date.Format (.Site.Params.dateFormat | default "02 Jan 2006") | $.Scratch.Set "subtitle" }}
{{ with .Description }} {{ $.Scratch.Set "subtitle" . }} {{ end }}
<h4>
<a href="{{ .RelPermalink }}">{{ .Title }}</a>
<a href="{{ .RelPermalink }}" class="p-name u-url u-uid">{{ .Title }}</a>
</h4>
{{ .Params.subtitle }}&nbsp;&nbsp;
<span style="color: lightgrey;"><svg class='icon icon-text'><title>date icon</title><use xlink:href='#cal1'></use></svg> {{ $.Scratch.Get "subtitle" }}</span>
<svg class='icon icon-text'><title>date icon</title><use xlink:href='#cal1'></use></svg>
<time datetime='{{ $.Scratch.Get "subtitle" }}' class="dt-published">
{{ $.Scratch.Get "subtitle" }}
</time>&nbsp;|&nbsp;
<span class="p-summary">{{ .Params.subtitle }}</span>&nbsp;&nbsp;
</article>
{{ end }}
</div>

File diff suppressed because one or more lines are too long

View File

@ -1,3 +1,4 @@
{{- $allowedRssSections := (slice "post" "notes") -}}
{{- $baseurl := .Site.BaseURL -}}
{{- $pctx := . -}}
{{- if .IsHome -}}{{ $pctx = .Site }}{{- end -}}
@ -27,6 +28,7 @@
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
{{ range $pages }}
{{ if in $allowedRssSections .Section }}
<item>
<title>{{ .Title }}</title>
<link>{{ .Permalink }}</link>
@ -62,5 +64,6 @@
</description>
</item>
{{ end }}
{{ end }}
</channel>
</rss>

View File

@ -33,7 +33,7 @@
<use xlink:href='#folder'></use>
</svg>
{{ range .Params.categories }}
<a class="p-category u-url" href="/categories/{{ . }}">{{ . }}</a>
<a class="p-category" href="/categories/{{ . }}">{{ . }}</a>
{{ end }}
</span>
{{ end }}
@ -48,7 +48,7 @@
{{ end }}
<span class='list-tags'>
{{ range .Params.tags }}
<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}"><kbd class="item-tag">{{ . }}</kbd></a>
<a href="{{ $.Site.BaseURL }}tags/{{ . | urlize }}"><kbd class="item-tag p-category">{{ . }}</kbd></a>
{{ end }}
</span>

View File

@ -12,13 +12,13 @@
<article>
<h4><a href="{{ .RelPermalink }}">{{ .Title }}</a></h4>
{{ if isset $.Params "subtitle" }}
{{ .Params.subtitle }}
<time datetime='{{ .Date.Format "2006-01-02" }}'>
<svg class='icon icon-text' width='24' height='24'>
<use xlink:href='#cal1'></use>
</svg>
{{ .Date.Format (.Site.Params.dateFormat | default "2 January 2006") }}
</time>
{{ .Date.Format (.Site.Params.dateFormat | default "02 Jan 2006") }}
</time>&nbsp;|&nbsp;
{{ .Params.subtitle }}
{{ end }}
</article>
{{ end }}

View File

@ -22,7 +22,7 @@
<use xlink:href='#cal1'></use>
</svg>
<time class="dt-published" datetime="{{ .published }}">
{{ .published }}
{{ .publishedFromNow }}
</time>
&nbsp;|&nbsp;by&nbsp;
<a rel="author" class="u-author h-card u-url permalink" href="{{ .source }}">