diff --git a/config.toml b/config.toml index f63ccbd3..2a368ad7 100644 --- a/config.toml +++ b/config.toml @@ -26,6 +26,7 @@ paginate = 36 [author] name = "JP Hastings-Spital" + email = "hello@byjp.me" [taxonomies] series = 'series' @@ -68,12 +69,12 @@ paginate = 36 url = "mailto:hello@byjp.me" [[languages.en.params.social]] - name = "mastodon" - url = "https://hachyderm.io/@byjp" + name = "bluesky" + url = "https://bsky.app/profile/byjp.me" [[languages.en.params.social]] - name = "pixelfed" - url = "https://pixelfed.social/jphastings" + name = "mastodon" + url = "https://hachyderm.io/@byjp" [[languages.en.params.social]] name = "github" diff --git a/content/posts/link-shortener/index.md b/content/posts/link-shortener/index.md index d4dbdb30..d91cf6c6 100644 --- a/content/posts/link-shortener/index.md +++ b/content/posts/link-shortener/index.md @@ -11,6 +11,9 @@ tags: - val.town - indieweb summary: Using IPFS to build a trivial link shortener that doesn't hide & hoard the destination from the world. +syndications: +- https://bsky.app/profile/byjp.me/post/3jzz5ksqk342f +- https://hachyderm.io/@byjp/110678606565568698 --- Link shorteners are superbly useful, but _really bad_ for the longevity of the world wide web. Every time you use tinyurl.com, bit.ly, or similar you are taking something open and direct (the web address of the think you're pointing people to) and hiding it within the black box that is the company behind that site. diff --git a/content/posts/mental-poker/fate-and-secrets/index.md b/content/posts/mental-poker/fate-and-secrets/index.md new file mode 100644 index 00000000..1d3a7a31 --- /dev/null +++ b/content/posts/mental-poker/fate-and-secrets/index.md @@ -0,0 +1,16 @@ +--- +title: "Mental poker: fate and secrets" +emoji: 🃏 +date: 2023-07-26T07:03:09+01:00 +draft: true +tags: + - tech + - web + - trustless + - games + - protocol + - cryptography +summary: How could you play a game of cards by post without any cheating? +series: +- Mental poker +--- \ No newline at end of file diff --git a/content/posts/distributed-game-protocols/open-games/index.md b/content/posts/mental-poker/open-games/index.md similarity index 100% rename from content/posts/distributed-game-protocols/open-games/index.md rename to content/posts/mental-poker/open-games/index.md diff --git a/content/posts/distributed-game-protocols/randomness/index.md b/content/posts/mental-poker/randomness/index.md similarity index 100% rename from content/posts/distributed-game-protocols/randomness/index.md rename to content/posts/mental-poker/randomness/index.md diff --git a/layouts/partials/about-me.html b/layouts/partials/about-me.html index acb76d06..e739bef8 100644 --- a/layouts/partials/about-me.html +++ b/layouts/partials/about-me.html @@ -1,6 +1,6 @@
A photo of me smiling, with short brown hair, a beard and glasses. - Hello! I'm JP Hastings-Spital, a maker, software engineer, swing dancer, and all-round miriscient chap living in London, UK. I'm a principal engineer at Deliveroo. + Hello! I'm JP Hastings-Spital, a maker, software engineer, swing dancer, and all-round miriscient chap living in London, UK. I'm principal engineer at Deliveroo.

I post here infrequently about things I've created or care about. Recently I've written diff --git a/layouts/partials/syndication.html b/layouts/partials/syndication.html new file mode 100644 index 00000000..cae15b8a --- /dev/null +++ b/layouts/partials/syndication.html @@ -0,0 +1,34 @@ + +

+ +
+ +{{ range .Params.syndications }} + {{ if hasPrefix . "https://bsky.app/" }} + +
+ +
+
+ {{ else if hasPrefix . "https://hachyderm.io/" }} + +
+ +
+
+ {{ else }} + +
+ +
+
+ {{ end }} +{{end}} diff --git a/themes/hello-friend-ng/assets/scss/_main.scss b/themes/hello-friend-ng/assets/scss/_main.scss index 31245a89..80ac7797 100644 --- a/themes/hello-friend-ng/assets/scss/_main.scss +++ b/themes/hello-friend-ng/assets/scss/_main.scss @@ -131,7 +131,7 @@ a[href^="https://web.archive.org/"] { text-decoration: none; } -main p a, main li a, nav a, .social a, section a, .accented, .banner-404 a { +main p a, main li a, nav a, .social a, section a, .accented, .banner-404 a, .syndication a { &:hover { color: var(--accent); } diff --git a/themes/hello-friend-ng/assets/scss/main.scss b/themes/hello-friend-ng/assets/scss/main.scss index b62cb6e2..17921606 100644 --- a/themes/hello-friend-ng/assets/scss/main.scss +++ b/themes/hello-friend-ng/assets/scss/main.scss @@ -14,6 +14,6 @@ @import "list"; @import "single"; @import "footer"; -@import "sharing-buttons"; +@import "syndication"; @import "tables"; @import "404"; diff --git a/themes/hello-friend-ng/assets/scss/_sharing-buttons.scss b/themes/hello-friend-ng/assets/scss/syndication.scss similarity index 72% rename from themes/hello-friend-ng/assets/scss/_sharing-buttons.scss rename to themes/hello-friend-ng/assets/scss/syndication.scss index c6bee53b..b90c547c 100644 --- a/themes/hello-friend-ng/assets/scss/_sharing-buttons.scss +++ b/themes/hello-friend-ng/assets/scss/syndication.scss @@ -1,14 +1,14 @@ -.sharing-buttons { +.syndication { display: flex; flex-wrap: wrap; - justify-content: space-between; + justify-content: space-evenly; - .resp-sharing-button__icon, - .resp-sharing-button__link { + .resp-syndication__icon, + .resp-syndication__link { display: inline-block; } - .resp-sharing-button__link { + .resp-syndication__link { text-decoration: none; margin: 0.5em; } @@ -20,7 +20,7 @@ font-family: Helvetica Neue,Helvetica,Arial,sans-serif; } - .resp-sharing-button__icon svg { + .resp-syndication__icon svg { width: 1em; height: 1em; margin-right: 0.4em; diff --git a/themes/hello-friend-ng/layouts/partials/sharing-buttons.html b/themes/hello-friend-ng/layouts/partials/sharing-buttons.html deleted file mode 100644 index 86dc1c60..00000000 --- a/themes/hello-friend-ng/layouts/partials/sharing-buttons.html +++ /dev/null @@ -1,89 +0,0 @@ - - -
-
-
- - - -
- -
-
- - - -
- -
-
- - - -
-
-
- - - -
-
-
- - - -
-
-
- - - -
-
-
- - - -
-
-
- - - -
-
-
- - - -
-
-
- - - -
-
-
diff --git a/themes/hello-friend-ng/layouts/partials/svg.html b/themes/hello-friend-ng/layouts/partials/svg.html index 026afe76..f90cc73c 100644 --- a/themes/hello-friend-ng/layouts/partials/svg.html +++ b/themes/hello-friend-ng/layouts/partials/svg.html @@ -1,7 +1,11 @@ {{- if (eq .name "amazon") -}} +{{- else if (eq .name "anonymous") -}} + {{- else if (eq .name "anilist") -}} +{{- else if (eq .name "bluesky") -}} + {{- else if (eq .name "box") -}} {{- else if (eq .name "behance") -}} @@ -21,7 +25,7 @@ {{- else if (eq .name "codepen") -}} {{- else if (eq .name "dev") -}} - + {{- else if (eq .name "deviantart") -}} {{- else if (eq .name "discogs") -}} @@ -115,7 +119,7 @@ {{- else if (eq .name "pinterest") }} {{- else if (eq .name "pixelfed") }} - + {{- else if (eq .name "podcasts-apple") -}} {{- else if (eq .name "podcasts-google") -}} diff --git a/themes/hello-friend-ng/layouts/posts/single.html b/themes/hello-friend-ng/layouts/posts/single.html index 12c1e63c..cc99a62b 100644 --- a/themes/hello-friend-ng/layouts/posts/single.html +++ b/themes/hello-friend-ng/layouts/posts/single.html @@ -126,12 +126,10 @@ {{- end }} - {{- if .Site.Params.EnableSharingButtons }} -
-
- {{ partial "sharing-buttons.html" . }} -
- {{- end }} +
+
+ {{ partial "syndication.html" . }} +
{{ partial "pagination-single.html" . }}