attempt to bring back ability to post notes under the radar to interact with other sites

This commit is contained in:
Wouter Groeneveld 2022-04-26 12:21:42 +02:00
parent a7eb902e6f
commit 76077e3d5d
13 changed files with 168 additions and 11 deletions

9
content/all/_index.md Normal file
View File

@ -0,0 +1,9 @@
---
title: All things Brain Baking
---
## All??
Congrats, you've unlocked a super-secret endpoint [/all/index.xml](/all/index.xml) used by my [Go-Jamming server](/post/2021/05/beyond-webmention-io/) to process posts on this site! It's of no use to you, trust me.
[Subscribe to Brain Baking](/subscribe) the _normal_ way, please.

View File

@ -0,0 +1,8 @@
---
source: "https://chat.brainbaking.com/objects/f5fd9f27-460c-4984-aaf4-843788b94419"
context: ""
title: "Has anyone else noticed posted links on Twitter get re-encoded into t.co URLs in order to gather ..."
date: "2021-02-27T14:25:16"
---
Has anyone else noticed posted links on Twitter get re-encoded into <a href="http://t.co" rel="ugc">t.co</a> URLs in order to gather even more &#39;insight&#39; data? That said, I&#39;m having trouble finding anyone on the Fediverse... Any hints?

View File

@ -0,0 +1,7 @@
---
source: "https://chat.brainbaking.com/objects/27c24d67-e141-415e-a4ca-a71a722773f1"
title: "@rubenerd Do you have a set of scripts on rubenerd..."
date: "2021-06-14T19:55:52"
---
<span class="h-card"><a class="u-url mention" data-user="A55JMm161znJQ5T5hQ" href="https://bsd.network/@rubenerd" rel="ugc">@<span>rubenerd</span></a></span> Do you have a set of scripts on <a href="http://rubenerd.com" rel="ugc">rubenerd.com</a> that converts a typical youtube embed in Hugo to your nice image-with-play-button thingie? I'm tired of iframes and would like to adopt some sort of automation for this. Thanks!

View File

@ -0,0 +1,6 @@
---
date: 2022-04-26T12:06:10+02:00
context: "https://ohhelloana.blog/guestbook/"
---
Hi Ana hope you're doing well! The Webmention Guestbook idea is awesome! Looking forward to your future blog posts.

13
content/notes/_index.md Normal file
View File

@ -0,0 +1,13 @@
---
title: Half-Baked Ideas
type: archive
icontag: tech
---
> A half-baked idea a day keeps the doctor away. <span>Wouter</span>
These are fleeting, _half-baked_ thoughts, that may or may not get fully baked into fleshed out [blog posts](/post). The notes below may also be syndicated to other platforms and websites. Enjoy reading my ramblings!
Not finding what you're looking for? [Browse the archives](/archives).<br/>
Interested more substantial thoughts? [Read the Freshly Baked blog](/post).

View File

@ -7,7 +7,7 @@ tags:
- hugo
---
A great blog engine removes friction and pushes you to write more. An average blog engine has you sweating and coming up with needless details, such as tags and other metadata. For example, on my retro gaming site [Jefklak's Codex](https://jefklakscodex.com/games/), I categorize each game entry by platform---a `platform` metadata key that had to be manually entered. After thinking things through and a thorough refactoring attempt, this is now automatically deduced based on the folder name (e.g. `/games/switch/unpacking`). One less thing to worry about.
A great blog engine removes friction and pushes you to write more. An average blog engine has you sweating and coming up with needless details, such as tags and other metadata. For example, on my retro gaming site [Jefklak's Codex](https://jefklakscodex.com/games/), I categorize each game entry by platform---a `platform` metadata key that had to be manually entered. After thinking things through and a thorough refactoring attempt, this is now automatically deduced based on the folder name (e.g. `/games/switch/unpacking`). One less thing to worry about. I've written before about [reducing friction and automating metadata keys](/post/2021/07/reducing-workflow-load-facilitates-writing) and how it facilitates writing.
The same is true for tags, which traditionally are used in Hugo-powered blogs to find related articles. On the bottom of each Brain Baking post, the following code finds the first three related posts based on the intersection of tags, excluding the current page:

View File

@ -7,5 +7,6 @@ icontag: book
A continuous pursuit of knowledge for either personal or professional reasons is called "Lifelong learning" - also known as "**Brain Baking**". I discovered that in order for me to teach and inspire others, I first had to teach and inspire myself. You are looking at the result of that work.
Want to stay up to date? [Subscribe to the <svg class='icon icon-small' width='16' height='16'><title>feed icon</title><use xlink:href='#news'></use></svg>Blog Feed](/post/index.xml).<br/>
Not finding what you're looking for? [Browse the archives](/archives).<br/>
Want to stay up to date? [Subscribe to the <svg class='icon icon-small' width='16' height='16'><title>feed icon</title><use xlink:href='#news'></use></svg>Blog Feed](/post/index.xml).
Interested in fleeting thoughts? [Read half-baked notes](/notes).<br/>

File diff suppressed because one or more lines are too long

View File

@ -3,21 +3,19 @@
{{- printf "<?xml version=\"1.0\" encoding=\"utf-8\" standalone=\"yes\"?>" | safeHTML }}
<rss version='2.0' xmlns:content='http://purl.org/rss/1.0/modules/content/' xmlns:atom='http://www.w3.org/2005/Atom'>
<channel>
<title>{{ if eq .Title .Site.Title }}{{ .Site.Title }}{{ else }}{{ with .Title }}{{.}} on {{ end }}{{ .Site.Title }}{{ end }}</title>
<!-- This is not the droid you're looking for! -->
<!-- Please use /index.xml to subscribe, /all/index.xml is used internally and also contains notes -->
<title>Everything from {{ .Site.Title }}</title>
<link>{{ .Permalink }}</link>
<description>Recent content {{ if ne .Title .Site.Title }}{{ with .Title }}in {{.}} {{ end }}{{ end }}on {{ .Site.Title }}</description>
<generator>Hugo -- gohugo.io</generator>{{ with .Site.LanguageCode }}
<language>{{.}}</language>{{end}}
<managingEditor>{{ with $.Site.Author.name }}{{.}}{{end}}</managingEditor>
<webMaster>{{ with $.Site.Author.name }}{{.}}{{end}}</webMaster>{{ with .Site.Copyright }}
<copyright>{{.}}</copyright>{{end}}{{ if not .Date.IsZero }}
<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{ if not .Date.IsZero }}<lastBuildDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</lastBuildDate>{{ end }}
{{ with .OutputFormats.Get "RSS" }}
{{ printf "<atom:link href=%q rel=\"self\" type=%q />" .Permalink .MediaType | safeHTML }}
{{ end }}
{{ range $pages }}
<item>
<title>{{ .Title }}</title>
<title>{{ if .Title }}{{ .Title }}{{ else }}Note on {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}{{ end }}</title>
<link>{{ .Permalink }}</link>
<comments>{{ .Site.Author.mastodonlink }}</comments>
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>

View File

@ -0,0 +1,46 @@
{{ partial "header" . }}
{{ partial "bigimg" . }}
<a id="top"></a>
<main class="list">
<header>
<h1>
<svg class='icon'><use xlink:href="#{{ .Params.icontag }}"></use></svg>&nbsp;{{ .Title }}
</h1>
</header>
{{ $paginator := .Paginate (where .Data.Pages ".Params.type" "ne" "archive") $.Site.Params.pagination }}
{{ if eq $paginator.PageNumber 1 }}
<hr/>
{{ with .Content }}
<article>
{{ . }}
</article>
{{ end }}
{{ end }}
<div class="tootlist">
{{ range ($paginator.Pages).GroupByDate "2006" "desc" }}
<h2>{{ .Key }}</h2>
{{ range .Pages.GroupByDate "January" }}
<h3>{{ .Key }}</h3>
{{ range .Pages.ByDate.Reverse }}
{{ partial "toot" . }}
{{ end }}
{{ end }}
{{ end }}
</div>
{{ template "_internal/pagination.html" . }}
<footer>
<svg class='icon icon-text' width='24' height='24'><use xlink:href='#up'></use></svg><a href="#top">Top</a>
</footer>
</main>
{{ partial "footer" . }}

View File

@ -0,0 +1,63 @@
{{ partial "header" . }}
{{ partial "bigimg" . }}
<main class="h-entry">
<article class="single {{ .Section }}">
<a id="top"></a>
<header>
<h1>
Half-Baked Thought
</h1>
<h2>
{{ .Title | safeHTML }}
</h2>
<h3>
<time datetime='{{ .Date.Format "2006-01-02T15:04:00" }}' class="dt-published">
<svg class='icon icon-text' width='24' height='24'>
<use xlink:href='#cal1'></use>
</svg>
<a class="u-url u-uid" href="{{ .RelPermalink }}">
{{ .Date.Format "2 January 2006, 15:04" }}
</a>
</time>
&nbsp;|&nbsp;
<span title="Categories">
<svg class='icon icon-text' width='24' height='24'>
<use xlink:href='#folder'></use>
</svg>
<a class="p-category u-url" href="/notes">notes</a>
</span>
{{ if (and (isset .Params "context") (not (eq .Params.context ""))) }}
&nbsp;|&nbsp;
<svg class='icon icon-text' width='24' height='24'>
<use xlink:href='#discuss'></use>
</svg>
<a href="{{ .Params.context }}" class="u-in-reply-to">In reply to</a>{{ with .Params.rsvp }}&nbsp;(RSVP: <span class="p-rsvp">{{ . }}</span>){{ end }}<br/>
{{ end }}
</h3>
</header>
<div class="inmargin">
<a rel="author" class="p-author h-card u-url" href="{{ .Site.BaseURL }}">
<img class="u-photo" src="{{ .Site.BaseURL }}img/avatar.jpg" alt="{{ .Site.Author.name }}" />
</a>
</div>
<div class="e-content content toot">
{{ .Content | safeHTML }}
</div>
<hr/>
{{ if .Params.source }}
Also posted <svg class='icon icon-text' width='16' height='16'><use xlink:href='#discuss'></use></svg><a href="{{ .Params.source }}" rel="syndication" class="u-syndication">on Mastodon</a> by <a rel="author" href="{{ .Site.BaseURL }}">{{ .Site.Author.name }}</a>.
{{ end }}
</article>
<div class="belowsingle">
<div class="txtblock">
{{ partial "single-webmentions" . }}
</div>
</div>
</main>
{{ partial "footer.html" . }}

View File

@ -4,8 +4,10 @@
{{ partial "head-meta" . }}
{{ if eq .Title .Site.Title }}
<title>{{ .Title }} | {{ .Site.Params.description }} </title>
{{ else }}
{{ else if .Title }}
<title>{{ .Title }} | {{ .Site.Title }}</title>
{{ else }}
<title>Note | {{ .Site.Title }}</title>
{{ end }}
{{ $favicon := "/img/logo.jpg" }}
<link rel="apple-touch-icon" href="{{ $favicon | absURL }}" />

View File

@ -12,6 +12,10 @@
</time>
&nbsp;|&nbsp;
<a href="{{ .RelPermalink }}" class="permalink">Permalink</a>
{{ with .Params.context }}
&nbsp;|&nbsp;<svg class='icon icon-text' width='24' height='24'><use xlink:href='#discuss'></use></svg>
<a href="{{ . }}" class="permalink">Context</a>
{{ end }}
</div>
</div>
</article>