Fix internal reply to & inReplyTo

This commit is contained in:
JP Hastings-Spital 2024-03-31 23:30:31 +01:00
parent 41621df88d
commit af6fef217b
48 changed files with 102 additions and 57 deletions

View file

@ -68,6 +68,11 @@
vertical-align:middle; vertical-align:middle;
margin-left: 0.2em; margin-left: 0.2em;
} }
p.in-reply-to, p.bookmark-of {
font-size: small;
font-style: italic;
}
} }
&-content svg, &-info svg { &-content svg, &-info svg {

View file

@ -3,6 +3,6 @@ date: "2018-06-07T22:19:40Z"
tags: tags:
- imported - imported
- from-twitter - from-twitter
inReplyTo: ../1004850346701807617 inReplyTo: /notes/twitter/1004850346701807617
--- ---
PS. Do you also sell bookcases? PS. Do you also sell bookcases?

View file

@ -3,7 +3,7 @@ date: "2018-07-24T23:04:15Z"
tags: tags:
- imported - imported
- from-twitter - from-twitter
inReplyTo: ../1021893175785545729 inReplyTo: /notes/twitter/1021893175785545729
--- ---
1\) Conflict of interest\ 1\) Conflict of interest\
Person measuring your ++ to the business, & tasked with fighting your corner, must now be aware of human duality \(hard time personally \!= poor for business\); your mgr needs to be great at managing, know your role \(for your career\) & know basic psychology. Person measuring your ++ to the business, & tasked with fighting your corner, must now be aware of human duality \(hard time personally \!= poor for business\); your mgr needs to be great at managing, know your role \(for your career\) & know basic psychology.

View file

@ -3,7 +3,7 @@ date: "2018-07-24T23:07:39Z"
tags: tags:
- imported - imported
- from-twitter - from-twitter
inReplyTo: ../1021893856491655168 inReplyTo: /notes/twitter/1021893856491655168
--- ---
2\) Assuming good intent\ 2\) Assuming good intent\
Counsellors \(in UK\) are required to be in counselling. Listening to another human's hardships is tough. Many requires you have your own outlet, no matter your strength. Even the best tree of mgrs like this requires each can give greater psych'l support Counsellors \(in UK\) are required to be in counselling. Listening to another human's hardships is tough. Many requires you have your own outlet, no matter your strength. Even the best tree of mgrs like this requires each can give greater psych'l support

View file

@ -3,7 +3,7 @@ date: "2018-07-24T23:09:45Z"
tags: tags:
- imported - imported
- from-twitter - from-twitter
inReplyTo: ../1021894710011547648 inReplyTo: /notes/twitter/1021894710011547648
--- ---
My take? Psychology is complex. Understanding even a slice gives a better shot at smooth group function \(home or work\). My take? Psychology is complex. Understanding even a slice gives a better shot at smooth group function \(home or work\).

View file

@ -3,6 +3,6 @@ date: "2018-07-24T23:15:37Z"
tags: tags:
- imported - imported
- from-twitter - from-twitter
inReplyTo: ../1021895238779109381 inReplyTo: /notes/twitter/1021895238779109381
--- ---
More succinctly: does the person your manager turns to for support have time and experience enough to give it? More succinctly: does the person your manager turns to for support have time and experience enough to give it?

View file

@ -3,6 +3,6 @@ date: "2018-10-10T07:36:45Z"
tags: tags:
- imported - imported
- from-twitter - from-twitter
inReplyTo: ../1049926608927289345 inReplyTo: /notes/twitter/1049926608927289345
--- ---
A bond with a _Ted's_ barber is a close and brief one; 30 seconds in and they know your profession, the troubles of your week, and have washed your hair with care and tenderness your partner only just outdoes. "It's hard but it's good." 2/5 A bond with a _Ted's_ barber is a close and brief one; 30 seconds in and they know your profession, the troubles of your week, and have washed your hair with care and tenderness your partner only just outdoes. "It's hard but it's good." 2/5

View file

@ -3,6 +3,6 @@ date: "2018-10-10T07:37:01Z"
tags: tags:
- imported - imported
- from-twitter - from-twitter
inReplyTo: ../1049926693744455681 inReplyTo: /notes/twitter/1049926693744455681
--- ---
"Ey, I seen dem gains\!", he says, as he moves to pulling fingers, cracking my knuckles as he goes, "Workin' at that computer'n everyfing. You're stronger than you look bruv\!" 3/5 "Ey, I seen dem gains\!", he says, as he moves to pulling fingers, cracking my knuckles as he goes, "Workin' at that computer'n everyfing. You're stronger than you look bruv\!" 3/5

View file

@ -3,6 +3,6 @@ date: "2018-10-10T07:37:14Z"
tags: tags:
- imported - imported
- from-twitter - from-twitter
inReplyTo: ../1049926763906785280 inReplyTo: /notes/twitter/1049926763906785280
--- ---
We part ways a few minutes later, he offers some sage parting advice: "Don't have too many beers tonight yeh? I know what you're like ha\!" 4/5 We part ways a few minutes later, he offers some sage parting advice: "Don't have too many beers tonight yeh? I know what you're like ha\!" 4/5

View file

@ -3,6 +3,6 @@ date: "2018-10-10T07:37:23Z"
tags: tags:
- imported - imported
- from-twitter - from-twitter
inReplyTo: ../1049926817950433280 inReplyTo: /notes/twitter/1049926817950433280
--- ---
I promise nothing. I promise nothing.

View file

@ -4,7 +4,7 @@ tags:
- imported - imported
- from-twitter - from-twitter
- MiriscientMonday - MiriscientMonday
inReplyTo: ../1074597771854913537 inReplyTo: /notes/twitter/1074597771854913537
--- ---
So I'd turn the other cheek\ So I'd turn the other cheek\
And maybe sneak another forty winks\ And maybe sneak another forty winks\

View file

@ -4,7 +4,7 @@ tags:
- imported - imported
- from-twitter - from-twitter
- MiriscientMonday - MiriscientMonday
inReplyTo: ../1074597982748794881 inReplyTo: /notes/twitter/1074597982748794881
--- ---
But there's only so much you can do from bed.\ But there's only so much you can do from bed.\
Locked into reflection, sometimes it's novelty\ Locked into reflection, sometimes it's novelty\

View file

@ -4,7 +4,7 @@ tags:
- imported - imported
- from-twitter - from-twitter
- MiriscientMonday - MiriscientMonday
inReplyTo: ../1074598151594696704 inReplyTo: /notes/twitter/1074598151594696704
--- ---
Turns out, shock horror, I'm nothing new\ Turns out, shock horror, I'm nothing new\
There's quite a few folks who take the view\ There's quite a few folks who take the view\

View file

@ -4,7 +4,7 @@ tags:
- imported - imported
- from-twitter - from-twitter
- MiriscientMonday - MiriscientMonday
inReplyTo: ../1074598300777672704 inReplyTo: /notes/twitter/1074598300777672704
--- ---
So now I strive to learn as much\ So now I strive to learn as much\
About the wondrous, and absurd, and such\ About the wondrous, and absurd, and such\

View file

@ -4,7 +4,7 @@ tags:
- imported - imported
- from-twitter - from-twitter
- MiriscientMonday - MiriscientMonday
inReplyTo: ../1074598404293050368 inReplyTo: /notes/twitter/1074598404293050368
--- ---
To be in awe of what my fellow dreamers make,\ To be in awe of what my fellow dreamers make,\
Of their dreams or with their hands when wide awake\ Of their dreams or with their hands when wide awake\

View file

@ -4,7 +4,7 @@ tags:
- imported - imported
- from-twitter - from-twitter
- golang - golang
inReplyTo: ../1096915446702489600 inReplyTo: /notes/twitter/1096915446702489600
--- ---
"How did I do it?", you ask? "How did I do it?", you ask?

View file

@ -3,6 +3,6 @@ date: "2019-02-16T23:48:16Z"
tags: tags:
- imported - imported
- from-twitter - from-twitter
inReplyTo: ../1096919171059929089 inReplyTo: /notes/twitter/1096919171059929089
--- ---
The perceptual hash algo \([https://github.com/Nr90/imgsim](https://github.com/Nr90/imgsim)\) wasn't perfect for my use case, but it did a pretty great job. They're a way of comparing the visual similarity of two images, where slight visual differences register as smaller numerical difference. {{< imgorvid src="media-1.mp4" >}} The perceptual hash algo \([https://github.com/Nr90/imgsim](https://github.com/Nr90/imgsim)\) wasn't perfect for my use case, but it did a pretty great job. They're a way of comparing the visual similarity of two images, where slight visual differences register as smaller numerical difference. {{< imgorvid src="media-1.mp4" >}}

View file

@ -4,7 +4,7 @@ tags:
- imported - imported
- from-twitter - from-twitter
- golang - golang
inReplyTo: ../1096919221345357824 inReplyTo: /notes/twitter/1096919221345357824
--- ---
I decided to generate the gif in [golang](/tags/golang) too. Palette quantisation was fun to learn about; how you take a 32 bit colour image and decide which colours you should use when downsampling into 256 colours. I decided to generate the gif in [golang](/tags/golang) too. Palette quantisation was fun to learn about; how you take a 32 bit colour image and decide which colours you should use when downsampling into 256 colours.

View file

@ -3,7 +3,7 @@ date: "2019-02-16T23:48:41Z"
tags: tags:
- imported - imported
- from-twitter - from-twitter
inReplyTo: ../1096919268770414592 inReplyTo: /notes/twitter/1096919268770414592
--- ---
It's hacky++ code, but if you want to have a peek behind the curtain, here's a wee gist. It's hacky++ code, but if you want to have a peek behind the curtain, here's a wee gist.

View file

@ -3,7 +3,7 @@ date: "2019-02-16T23:53:22Z"
tags: tags:
- imported - imported
- from-twitter - from-twitter
inReplyTo: ../1096919325590589441 inReplyTo: /notes/twitter/1096919325590589441
--- ---
Oh, and if you're not familiar with it, huge props to the art team behind this show. Its direction is just wonderful. Oh, and if you're not familiar with it, huge props to the art team behind this show. Its direction is just wonderful.

View file

@ -5,7 +5,7 @@ tags:
- from-twitter - from-twitter
- LSEFestival - LSEFestival
- NewWorldDisorders - NewWorldDisorders
inReplyTo: ../1100513495924264960 inReplyTo: /notes/twitter/1100513495924264960
--- ---
It's even more powerful with this glorious bombshell from [@byers90](/twitter/#/byers90) \(I paraphrase\): It's even more powerful with this glorious bombshell from [@byers90](/twitter/#/byers90) \(I paraphrase\):

View file

@ -4,6 +4,6 @@ tags:
- imported - imported
- from-twitter - from-twitter
- jp - jp
inReplyTo: ../11129451946 inReplyTo: /notes/twitter/11129451946
--- ---
{{< friend "jp" >}} electric gate, but obviously not sync'd to GMT. Boo technology. {{< friend "jp" >}} electric gate, but obviously not sync'd to GMT. Boo technology.

View file

@ -4,6 +4,6 @@ tags:
- imported - imported
- from-twitter - from-twitter
- jp - jp
inReplyTo: ../11129728018 inReplyTo: /notes/twitter/11129728018
--- ---
{{< friend "jp" >}} 4 mins past - get NTP already. Stupid gate. Can't even tell the time. {{< friend "jp" >}} 4 mins past - get NTP already. Stupid gate. Can't even tell the time.

View file

@ -3,6 +3,6 @@ date: "2019-09-09T17:21:27Z"
tags: tags:
- imported - imported
- from-twitter - from-twitter
inReplyTo: ../1171110588212219904 inReplyTo: /notes/twitter/1171110588212219904
--- ---
Everything you need to pay attention to is yellow and either at the same height above-head or, for things that inform you but don't inform decision making, below your feet. Everything you need to pay attention to is yellow and either at the same height above-head or, for things that inform you but don't inform decision making, below your feet.

View file

@ -3,6 +3,6 @@ date: "2019-09-09T17:22:17Z"
tags: tags:
- imported - imported
- from-twitter - from-twitter
inReplyTo: ../1171111386174197769 inReplyTo: /notes/twitter/1171111386174197769
--- ---
The tube has the same colour themes, styling and fonts to give a consistent guide onward. {{< imgorvid src="media-1.jpg" >}} The tube has the same colour themes, styling and fonts to give a consistent guide onward. {{< imgorvid src="media-1.jpg" >}}

View file

@ -3,7 +3,7 @@ date: "2019-09-09T17:24:02Z"
tags: tags:
- imported - imported
- from-twitter - from-twitter
inReplyTo: ../1171111596246147073 inReplyTo: /notes/twitter/1171111596246147073
--- ---
In the few places where yellow isn't used, customisation has gone a long way to help people who don't speak English understand as best they can.\ In the few places where yellow isn't used, customisation has gone a long way to help people who don't speak English understand as best they can.\
\ \

View file

@ -3,6 +3,6 @@ date: "2022-11-08T21:54:31Z"
tags: tags:
- imported - imported
- from-twitter - from-twitter
inReplyTo: ../1588869487515705344 inReplyTo: /notes/twitter/1588869487515705344
--- ---
Redirect is in place, but I moved over to [@byjp@hachyderm.io](https://hachyderm.io/@byjp), as the community there is smaller and lovely. ☺️ Redirect is in place, but I moved over to [@byjp@hachyderm.io](https://hachyderm.io/@byjp), as the community there is smaller and lovely. ☺️

View file

@ -4,6 +4,6 @@ tags:
- imported - imported
- from-twitter - from-twitter
- jp - jp
inReplyTo: ../3756530104 inReplyTo: /notes/twitter/3756530104
--- ---
{{< friend "jp" >}} found a few. Oxford unabridged is 213557 words long\! Wonder how many I know? Could take a while... {{< friend "jp" >}} found a few. Oxford unabridged is 213557 words long\! Wonder how many I know? Could take a while...

View file

@ -3,6 +3,6 @@ date: "2015-09-03T16:07:48Z"
tags: tags:
- imported - imported
- from-twitter - from-twitter
inReplyTo: ../639468809968054272 inReplyTo: /notes/twitter/639468809968054272
--- ---
[@particle](/twitter/#/particle) also, I wish I'd known about your relay shield before I put this together, but I have one for the next project now :\) [@particle](/twitter/#/particle) also, I wish I'd known about your relay shield before I put this together, but I have one for the next project now :\)

View file

@ -3,6 +3,6 @@ date: "2015-09-13T22:07:32Z"
tags: tags:
- imported - imported
- from-twitter - from-twitter
inReplyTo: ../643183961108254720 inReplyTo: /notes/twitter/643183961108254720
--- ---
The difficulty is of course, choosing the time limits. The difficulty is of course, choosing the time limits.

View file

@ -3,6 +3,6 @@ date: "2015-12-07T13:47:44Z"
tags: tags:
- imported - imported
- from-twitter - from-twitter
inReplyTo: ../673860502917922817 inReplyTo: /notes/twitter/673860502917922817
--- ---
My inference: if you're assessing "women" as 1 category of people, you're failing at the thing which caused the problem you're trying to fix My inference: if you're assessing "women" as 1 category of people, you're failing at the thing which caused the problem you're trying to fix

View file

@ -3,6 +3,6 @@ date: "2016-02-05T08:21:36Z"
tags: tags:
- imported - imported
- from-twitter - from-twitter
inReplyTo: ../695521695696818177 inReplyTo: /notes/twitter/695521695696818177
--- ---
Truth be told, it was a very amicable ending, which made this even better\! :D Truth be told, it was a very amicable ending, which made this even better\! :D

View file

@ -4,6 +4,6 @@ tags:
- imported - imported
- from-twitter - from-twitter
- edds - edds
inReplyTo: ../719620783807574020 inReplyTo: /notes/twitter/719620783807574020
--- ---
The only shame is I can't give {{< friend "edds" >}} free food for building it - I'll just have to bring some top notch biscuits in instead. The only shame is I can't give {{< friend "edds" >}} free food for building it - I'll just have to bring some top notch biscuits in instead.

View file

@ -4,6 +4,6 @@ tags:
- imported - imported
- from-twitter - from-twitter
- jp - jp
inReplyTo: ../8035727427 inReplyTo: /notes/twitter/8035727427
--- ---
{{< friend "jp" >}} I like it when figure captions can be succinct *and* sound epic. {{< friend "jp" >}} I like it when figure captions can be succinct *and* sound epic.

View file

@ -6,6 +6,6 @@ tags:
- jp - jp
- Apple - Apple
- bug - bug
inReplyTo: ../8149186872 inReplyTo: /notes/twitter/8149186872
--- ---
{{< friend "jp" >}} Yeah, don't send a 'apso' dmap tag when you mean 'aply'. True story. Worth telling [Apple](/tags/Apple) there's a [bug](/tags/bug)? {{< friend "jp" >}} Yeah, don't send a 'apso' dmap tag when you mean 'aply'. True story. Worth telling [Apple](/tags/Apple) there's a [bug](/tags/bug)?

View file

@ -3,6 +3,6 @@ date: "2017-09-16T11:12:02Z"
tags: tags:
- imported - imported
- from-twitter - from-twitter
inReplyTo: ../909011785856032770 inReplyTo: /notes/twitter/909011785856032770
--- ---
I can't decide if I think this is awesome or unexpected enough to be nasty. I can't decide if I think this is awesome or unexpected enough to be nasty.

View file

@ -3,6 +3,6 @@ date: "2017-12-25T18:42:39Z"
tags: tags:
- imported - imported
- from-twitter - from-twitter
inReplyTo: ../945362408343732224 inReplyTo: /notes/twitter/945362408343732224
--- ---
"Tale as old as time" 😂 "Tale as old as time" 😂

View file

@ -3,6 +3,6 @@ date: "2018-05-10T19:07:18Z"
tags: tags:
- imported - imported
- from-twitter - from-twitter
inReplyTo: ../994654482268065792 inReplyTo: /notes/twitter/994654482268065792
--- ---
aaaaaaand DEBATE\! 😅 aaaaaaand DEBATE\! 😅

View file

@ -9,10 +9,6 @@ location:
name: The Guy's Chapel name: The Guy's Chapel
latitude: 51.50448455718357 latitude: 51.50448455718357
longitude: -0.0881963644105807 longitude: -0.0881963644105807
references:
reply:
url: /calendar/one-off/2024-03/barb-jungr-feeling-good/
type: event
--- ---
What a lovely event! Barb's singing was rich and exciting, with Jenny's delightful and expressive piano accompaniment was all the more impressive when we learned it was almost entirely improvised. What a lovely event! Barb's singing was rich and exciting, with Jenny's delightful and expressive piano accompaniment was all the more impressive when we learned it was almost entirely improvised.

View file

@ -25,7 +25,7 @@
<li class="post-item"> <li class="post-item">
<a href="{{.Permalink}}"> <a href="{{.Permalink}}">
{{ if .Params.emoji }}<span class="post-emoji">{{ .Params.emoji }}</span>{{ end }} {{ if .Params.emoji }}<span class="post-emoji">{{ .Params.emoji }}</span>{{ end }}
<span class="post-title">{{ if .Title }}{{.Title}}{{ else }}<i>{{ .Type | singularize | title }} from {{ partial "year-relative-date.txt" .Date }}</i>{{ end }}</span> <span class="post-title">{{ partial "fallbacktitle.txt" . }}</span>
<span class="post-day"> <span class="post-day">
{{ if .Site.Params.dateformShort }} {{ if .Site.Params.dateformShort }}
{{ .Date.Format .Site.Params.dateformShort }} {{ .Date.Format .Site.Params.dateformShort }}

View file

@ -32,10 +32,11 @@
<pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate> <pubDate>{{ .Date.Format "Mon, 02 Jan 2006 15:04:05 -0700" | safeHTML }}</pubDate>
<guid>{{ .Permalink | absURL }}</guid> <guid>{{ .Permalink | absURL }}</guid>
<description> <description>
{{ with .Params.bookmarkOf }} {{ if .Params.bookmarkOf }}
Thoughts on {{.}} {{- $reference := partial "reference.obj" (dict "url" .Params.bookmarkOf "page" .) -}}
Thoughts on a bookmarked article{{ with $reference.name }}: {{.}}{{ end }}.
{{ else }} {{ else }}
{{ .Summary | html }} {{ .Summary }}
{{ end }} {{ end }}
</description> </description>
<content:encoded> <content:encoded>
@ -44,6 +45,8 @@
{{- end }} {{- end }}
{{ if .Params.bookmarkOf }} {{ if .Params.bookmarkOf }}
&lt;p&gt;&lt;i&gt;{{ partial "bookmark-of.html" . | html }}&lt;/i&gt;&lt;/p&gt; &lt;p&gt;&lt;i&gt;{{ partial "bookmark-of.html" . | html }}&lt;/i&gt;&lt;/p&gt;
{{ else if .Params.inReplyTo }}
&lt;p&gt;&lt;i&gt;{{ partial "in-reply-to.html" . | html }}&lt;/i&gt;&lt;/p&gt;
{{ end }} {{ end }}
{{ .Content | html }} {{ .Content | html }}
</content:encoded> </content:encoded>

View file

@ -93,9 +93,8 @@
<div class="post-content e-content" data-pagefind-body data-pagefind-filter="type:{{.Type | title}}"> <div class="post-content e-content" data-pagefind-body data-pagefind-filter="type:{{.Type | title}}">
{{ if .Params.bookmarkOf }} {{ if .Params.bookmarkOf }}
<p class="bookmark-of">{{ partial "bookmark-of.html" . }}</p> <p class="bookmark-of">{{ partial "bookmark-of.html" . }}</p>
{{ end }} {{ else if .Params.inReplyTo -}}
{{ if .Params.in_reply_to -}} <p class="in-reply-to">{{ partial "in-reply-to.html" . }}</p>
<small>{{ partial "svg.html" (dict "name" "reply") }} Replying to <a href="{{ .Params.in_reply_to }}">this post</a>.</small>
{{- end }} {{- end }}
{{ .Content }} {{ .Content }}
</div> </div>

View file

@ -11,15 +11,10 @@
{{- $page := . -}} {{- $page := . -}}
{{- $url := .Params.bookmarkOf -}} {{- $url := .Params.bookmarkOf -}}
{{- $reference := dict -}} {{- $reference := partial "reference.obj" (dict "url" $url "page" $page) -}}
{{- range .Params.references -}} {{ partial "svg.html" (dict "name" "message") }} Thoughts on{{" "}}
{{- if eq .url $url -}}
{{- $reference = . -}}
{{- end }}
{{- end -}}
💭 Thoughts on{{" "}}
{{- with $reference.name -}} {{- with $reference.name -}}
the {{ partial "partials/article-type.html" (default "article" $reference.type) }} {{ partial "rich-link.html" (dict "Class" "u-bookmark-of" "Destination" $url "Text" . "Page" $page) }}. the {{ partial "partials/article-type.html" (default "article" $reference.type) }} {{ partial "rich-link.html" (dict "Class" "u-bookmark-of" "Destination" $url "Text" . "Page" $page) }}
{{- else -}} {{- else -}}
{{ partial "rich-link.html" (dict "Class" "u-bookmark-of" "Destination" $url "Text" (printf "an article from %s" (($url | urls.Parse).Hostname)) "Page" $page) }} {{ partial "rich-link.html" (dict "Class" "u-bookmark-of" "Destination" $url "Text" (printf "an article from %s" (($url | urls.Parse).Hostname)) "Page" $page) }}
{{- end }} {{- end }}

View file

@ -0,0 +1,5 @@
{{ if .Title -}}
{{- .Title -}}
{{- else -}}
{{- .Type | singularize | title }} from {{ partial "year-relative-date.txt" .Date -}}
{{- end -}}

View file

@ -0,0 +1,31 @@
{{- if not .Params.inReplyTo -}}
{{ errorf "InReplyTo partial called when no inReplyTo param set" -}}
{{- end -}}
{{- define "partials/article-type.html" -}}
{{- if collections.In (slice "cite" "entry") . -}}
{{- "article" -}}
{{- else if eq . "calendar" -}}
{{- "calendar event" -}}
{{- else -}}
{{- . | singularize -}}
{{- end -}}
{{- end -}}
{{- $page := . -}}
{{- $url := .Params.inReplyTo -}}
{{- $hostname := (($url | urls.Parse).Hostname) -}}
{{- $reference := partial "reference.obj" (dict "url" $url "page" $page) -}}
{{- if and (not $reference.name) (strings.HasPrefix $url "/") -}}
{{- $other := site.GetPage $url -}}
{{- if and $other $other.Page -}}
{{- $reference = dict "name" (partial "fallbacktitle.txt" $other.Page) "type" $other.Page.Type "internal" true -}}
{{- end -}}
{{- end -}}
{{ partial "svg.html" (dict "name" "reply") }} As a reply to{{" "}}
{{- with $reference.name -}}
{{- if $reference.internal -}}my{{else}}the{{end}} {{ partial "partials/article-type.html" (default "article" $reference.type) }} {{ partial "rich-link.html" (dict "Class" "u-in-reply-to" "Destination" $url "Text" . "Page" $page) }}.
{{- else -}}
{{- $text := printf "an article from %s" $hostname -}}
{{- partial "rich-link.html" (dict "Class" "u-in-reply-to" "Destination" $url "Text" $text "Page" $page) }}
{{- end }}

View file

@ -0,0 +1,9 @@
{{- $url := .url -}}
{{- $page := .page -}}
{{- $reference := dict -}}
{{- range $page.Params.references -}}
{{- if eq .url $url -}}
{{- $reference = . -}}
{{- end }}
{{- end -}}
{{- return $reference -}}

View file

@ -106,6 +106,8 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke-width="2"><path d="M0 0v24h24V0H0zm19.938 5.686L18.651 6.92a.376.376 0 0 0-.143.362v9.067a.376.376 0 0 0 .143.361l1.257 1.234v.271h-6.322v-.27l1.302-1.265c.128-.128.128-.165.128-.36V8.99l-3.62 9.195h-.49L6.69 8.99v6.163a.85.85 0 0 0 .233.707l1.694 2.054v.271H3.815v-.27L5.51 15.86a.82.82 0 0 0 .218-.707V8.027a.624.624 0 0 0-.203-.527L4.019 5.686v-.27h4.674l3.613 7.923 3.176-7.924h4.456v.271z"/></svg> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke-width="2"><path d="M0 0v24h24V0H0zm19.938 5.686L18.651 6.92a.376.376 0 0 0-.143.362v9.067a.376.376 0 0 0 .143.361l1.257 1.234v.271h-6.322v-.27l1.302-1.265c.128-.128.128-.165.128-.36V8.99l-3.62 9.195h-.49L6.69 8.99v6.163a.85.85 0 0 0 .233.707l1.694 2.054v.271H3.815v-.27L5.51 15.86a.82.82 0 0 0 .218-.707V8.027a.624.624 0 0 0-.203-.527L4.019 5.686v-.27h4.674l3.613 7.923 3.176-7.924h4.456v.271z"/></svg>
{{- else if (eq .name "meetup") -}} {{- else if (eq .name "meetup") -}}
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path fill="currentColor" d="M6.98.555a.518.518 0 0 0-.105.011a.53.53 0 1 0 .222 1.04a.533.533 0 0 0 .409-.633a.531.531 0 0 0-.526-.418zm6.455.638a.984.984 0 0 0-.514.143a.99.99 0 1 0 1.02 1.699a.99.99 0 0 0 .34-1.36a.992.992 0 0 0-.846-.482zm-3.03 2.236a5.029 5.029 0 0 0-4.668 3.248a3.33 3.33 0 0 0-1.46.551a3.374 3.374 0 0 0-.94 4.562a3.634 3.634 0 0 0-.605 4.649a3.603 3.603 0 0 0 2.465 1.597c.018.732.238 1.466.686 2.114a3.9 3.9 0 0 0 5.423.992c.068-.047.12-.106.184-.157c.987.881 2.47 1.026 3.607.24a2.91 2.91 0 0 0 1.162-1.69a4.238 4.238 0 0 0 2.584-.739a4.274 4.274 0 0 0 1.19-5.789a2.466 2.466 0 0 0 .433-3.308a2.448 2.448 0 0 0-1.316-.934a4.436 4.436 0 0 0-.776-2.873a4.467 4.467 0 0 0-5.195-1.656a5.106 5.106 0 0 0-2.773-.807zm-5.603.817a.759.759 0 0 0-.423.135a.758.758 0 1 0 .863 1.248a.757.757 0 0 0 .193-1.055a.758.758 0 0 0-.633-.328zm15.994 2.37a.842.842 0 0 0-.47.151a.845.845 0 1 0 1.175.215a.845.845 0 0 0-.705-.365zm-8.15 1.028c.063 0 .124.005.182.014a.901.901 0 0 1 .45.187c.169.134.273.241.432.393c.24.227.414.089.534.02c.208-.122.369-.219.984-.208c.633.011 1.363.237 1.514 1.317c.168 1.199-1.966 4.289-1.817 5.722c.106 1.01 1.815.299 1.96 1.22c.186 1.198-2.136.753-2.667.493c-.832-.408-1.337-1.34-1.12-2.26c.16-.688 1.7-3.498 1.757-3.93c.059-.44-.177-.476-.324-.484c-.19-.01-.34.081-.526.362c-.169.255-2.082 4.085-2.248 4.398c-.296.56-.67.694-1.044.674c-.548-.029-.798-.32-.72-.848c.047-.31 1.26-3.049 1.323-3.476c.039-.265-.013-.546-.275-.68c-.263-.135-.572.07-.664.227c-.128.215-1.848 4.706-2.032 5.038c-.316.576-.65.76-1.152.784c-1.186.056-2.065-.92-1.678-2.116c.173-.532 1.316-4.571 1.895-5.599c.389-.69 1.468-1.216 2.217-.892c.387.167.925.437 1.084.507c.366.163.759-.277.913-.412c.155-.134.302-.276.49-.357c.142-.06.343-.095.532-.094zm10.88 2.057a.468.468 0 0 0-.093.011a.467.467 0 0 0-.36.555a.47.47 0 0 0 .557.36a.47.47 0 0 0 .36-.557a.47.47 0 0 0-.464-.37zm-22.518.81a.997.997 0 0 0-.832.434a1 1 0 1 0 1.39-.258a1 1 0 0 0-.558-.176zm21.294 2.094a.635.635 0 0 0-.127.013a.627.627 0 0 0-.48.746a.628.628 0 0 0 .746.483a.628.628 0 0 0 .482-.746a.63.63 0 0 0-.621-.496zm-18.24 6.097a.453.453 0 0 0-.092.012a.464.464 0 1 0 .195.908a.464.464 0 0 0 .356-.553a.465.465 0 0 0-.459-.367zm13.675 1.55a1.044 1.044 0 0 0-.583.187a1.047 1.047 0 1 0 1.456.265a1.044 1.044 0 0 0-.873-.451zM11.4 22.154a.643.643 0 0 0-.36.115a.646.646 0 0 0-.164.899a.646.646 0 0 0 .899.164a.646.646 0 0 0 .164-.898a.646.646 0 0 0-.54-.28z"/></svg> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor"><path fill="currentColor" d="M6.98.555a.518.518 0 0 0-.105.011a.53.53 0 1 0 .222 1.04a.533.533 0 0 0 .409-.633a.531.531 0 0 0-.526-.418zm6.455.638a.984.984 0 0 0-.514.143a.99.99 0 1 0 1.02 1.699a.99.99 0 0 0 .34-1.36a.992.992 0 0 0-.846-.482zm-3.03 2.236a5.029 5.029 0 0 0-4.668 3.248a3.33 3.33 0 0 0-1.46.551a3.374 3.374 0 0 0-.94 4.562a3.634 3.634 0 0 0-.605 4.649a3.603 3.603 0 0 0 2.465 1.597c.018.732.238 1.466.686 2.114a3.9 3.9 0 0 0 5.423.992c.068-.047.12-.106.184-.157c.987.881 2.47 1.026 3.607.24a2.91 2.91 0 0 0 1.162-1.69a4.238 4.238 0 0 0 2.584-.739a4.274 4.274 0 0 0 1.19-5.789a2.466 2.466 0 0 0 .433-3.308a2.448 2.448 0 0 0-1.316-.934a4.436 4.436 0 0 0-.776-2.873a4.467 4.467 0 0 0-5.195-1.656a5.106 5.106 0 0 0-2.773-.807zm-5.603.817a.759.759 0 0 0-.423.135a.758.758 0 1 0 .863 1.248a.757.757 0 0 0 .193-1.055a.758.758 0 0 0-.633-.328zm15.994 2.37a.842.842 0 0 0-.47.151a.845.845 0 1 0 1.175.215a.845.845 0 0 0-.705-.365zm-8.15 1.028c.063 0 .124.005.182.014a.901.901 0 0 1 .45.187c.169.134.273.241.432.393c.24.227.414.089.534.02c.208-.122.369-.219.984-.208c.633.011 1.363.237 1.514 1.317c.168 1.199-1.966 4.289-1.817 5.722c.106 1.01 1.815.299 1.96 1.22c.186 1.198-2.136.753-2.667.493c-.832-.408-1.337-1.34-1.12-2.26c.16-.688 1.7-3.498 1.757-3.93c.059-.44-.177-.476-.324-.484c-.19-.01-.34.081-.526.362c-.169.255-2.082 4.085-2.248 4.398c-.296.56-.67.694-1.044.674c-.548-.029-.798-.32-.72-.848c.047-.31 1.26-3.049 1.323-3.476c.039-.265-.013-.546-.275-.68c-.263-.135-.572.07-.664.227c-.128.215-1.848 4.706-2.032 5.038c-.316.576-.65.76-1.152.784c-1.186.056-2.065-.92-1.678-2.116c.173-.532 1.316-4.571 1.895-5.599c.389-.69 1.468-1.216 2.217-.892c.387.167.925.437 1.084.507c.366.163.759-.277.913-.412c.155-.134.302-.276.49-.357c.142-.06.343-.095.532-.094zm10.88 2.057a.468.468 0 0 0-.093.011a.467.467 0 0 0-.36.555a.47.47 0 0 0 .557.36a.47.47 0 0 0 .36-.557a.47.47 0 0 0-.464-.37zm-22.518.81a.997.997 0 0 0-.832.434a1 1 0 1 0 1.39-.258a1 1 0 0 0-.558-.176zm21.294 2.094a.635.635 0 0 0-.127.013a.627.627 0 0 0-.48.746a.628.628 0 0 0 .746.483a.628.628 0 0 0 .482-.746a.63.63 0 0 0-.621-.496zm-18.24 6.097a.453.453 0 0 0-.092.012a.464.464 0 1 0 .195.908a.464.464 0 0 0 .356-.553a.465.465 0 0 0-.459-.367zm13.675 1.55a1.044 1.044 0 0 0-.583.187a1.047 1.047 0 1 0 1.456.265a1.044 1.044 0 0 0-.873-.451zM11.4 22.154a.643.643 0 0 0-.36.115a.646.646 0 0 0-.164.899a.646.646 0 0 0 .899.164a.646.646 0 0 0 .164-.898a.646.646 0 0 0-.54-.28z"/></svg>
{{- else if (eq .name "message") -}}
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><path d="M21 11.5a8.38 8.38 0 0 1-.9 3.8 8.5 8.5 0 0 1-7.6 4.7 8.38 8.38 0 0 1-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 0 1-.9-3.8 8.5 8.5 0 0 1 4.7-7.6 8.38 8.38 0 0 1 3.8-.9h.5a8.48 8.48 0 0 1 8 8v.5z"></path></svg>
{{- else if (eq .name "mixcloud") -}} {{- else if (eq .name "mixcloud") -}}
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke-width="2"><path d="M21.95 19.062c-.154 0-.31-.045-.445-.135-.369-.25-.465-.75-.225-1.11.738-1.094 1.125-2.381 1.125-3.719s-.387-2.625-1.125-3.721c-.249-.368-.145-.866.216-1.106.375-.249.87-.146 1.108.214.917 1.365 1.396 2.97 1.396 4.62 0 1.648-.479 3.254-1.396 4.619-.135.239-.39.359-.645.359l-.009-.021zM19.66 17.768c-.153 0-.308-.045-.445-.139-.369-.239-.463-.734-.215-1.094.489-.721.747-1.545.747-2.43 0-.855-.258-1.695-.747-2.431-.248-.36-.154-.854.215-1.095s.857-.15 1.106.225c.669.99 1.021 2.145 1.021 3.314 0 1.201-.352 2.34-1.021 3.315-.146.24-.406.36-.661.36v-.025zm-3.73-7.153c-.314-3.197-3.016-5.699-6.3-5.699-2.721 0-5.13 1.748-5.995 4.283C1.588 9.501 0 11.269 0 13.4c0 2.344 1.912 4.254 4.26 4.254h10.908c1.964 0 3.566-1.594 3.566-3.557 0-1.706-1.2-3.129-2.805-3.48v-.002zm-.762 5.446H4.263c-1.466 0-2.669-1.191-2.669-2.658 0-1.465 1.193-2.658 2.669-2.658.71 0 1.381.285 1.886.781.3.314.811.314 1.125 0 .3-.301.3-.811 0-1.125-.555-.542-1.231-.931-1.965-1.111.75-1.665 2.43-2.774 4.305-2.774 2.609 0 4.74 2.129 4.74 4.738 0 .512-.075 1.006-.24 1.486-.135.42.09.869.51 1.02.074.03.165.045.24.045.33 0 .645-.211.75-.54.105-.315.18-.63.225-.96.734.285 1.26 1.005 1.26 1.83 0 1.096-.885 1.979-1.965 1.979l.034-.053z"/></svg> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="currentColor" stroke-width="2"><path d="M21.95 19.062c-.154 0-.31-.045-.445-.135-.369-.25-.465-.75-.225-1.11.738-1.094 1.125-2.381 1.125-3.719s-.387-2.625-1.125-3.721c-.249-.368-.145-.866.216-1.106.375-.249.87-.146 1.108.214.917 1.365 1.396 2.97 1.396 4.62 0 1.648-.479 3.254-1.396 4.619-.135.239-.39.359-.645.359l-.009-.021zM19.66 17.768c-.153 0-.308-.045-.445-.139-.369-.239-.463-.734-.215-1.094.489-.721.747-1.545.747-2.43 0-.855-.258-1.695-.747-2.431-.248-.36-.154-.854.215-1.095s.857-.15 1.106.225c.669.99 1.021 2.145 1.021 3.314 0 1.201-.352 2.34-1.021 3.315-.146.24-.406.36-.661.36v-.025zm-3.73-7.153c-.314-3.197-3.016-5.699-6.3-5.699-2.721 0-5.13 1.748-5.995 4.283C1.588 9.501 0 11.269 0 13.4c0 2.344 1.912 4.254 4.26 4.254h10.908c1.964 0 3.566-1.594 3.566-3.557 0-1.706-1.2-3.129-2.805-3.48v-.002zm-.762 5.446H4.263c-1.466 0-2.669-1.191-2.669-2.658 0-1.465 1.193-2.658 2.669-2.658.71 0 1.381.285 1.886.781.3.314.811.314 1.125 0 .3-.301.3-.811 0-1.125-.555-.542-1.231-.931-1.965-1.111.75-1.665 2.43-2.774 4.305-2.774 2.609 0 4.74 2.129 4.74 4.738 0 .512-.075 1.006-.24 1.486-.135.42.09.869.51 1.02.074.03.165.045.24.045.33 0 .645-.211.75-.54.105-.315.18-.63.225-.96.734.285 1.26 1.005 1.26 1.83 0 1.096-.885 1.979-1.965 1.979l.034-.053z"/></svg>
{{- else if (eq .name "npm") -}} {{- else if (eq .name "npm") -}}

View file

@ -10,7 +10,6 @@ Things I might work on within my personal blog's software.
### Ideas ### Ideas
- [ ] Add `inReplyTo` support (like bookmarks)
- [ ] Show (internal) replies to this note - [ ] Show (internal) replies to this note
- [ ] Import from Omnivore daily - [ ] Import from Omnivore daily
- [ ] Facebook import? - [ ] Facebook import?
@ -43,3 +42,4 @@ Things I might work on within my personal blog's software.
- [x] Fix hashtags with poor accessibility multiwordhashtags - [x] Fix hashtags with poor accessibility multiwordhashtags
- [x] Fix goodreads links (point to blog) - [x] Fix goodreads links (point to blog)
- [x] Fix instagram links (~~point to blog~~ delete; they're cross-posts anyway) - [x] Fix instagram links (~~point to blog~~ delete; they're cross-posts anyway)
- [x] Add `inReplyTo` support (like bookmarks)