From 9984b60738bd15d838752e71d62565f40930a2ac Mon Sep 17 00:00:00 2001 From: a Date: Sun, 29 Sep 2024 20:32:51 -0500 Subject: [PATCH] WIP --- .../archetypes/default.md | 0 .../assets/scripts/main.js | 0 .../assets/scripts/search.js | 3 +- .../assets/styles/common.scss | 0 .../assets/styles/common/reset.scss | 0 .../assets/styles/common/variables.scss | 0 .../styles/layouts/_default/baseof.scss | 0 .../assets/styles/layouts/_default/list.scss | 0 .../styles/layouts/_default/single.scss | 0 .../assets/styles/layouts/index.scss | 0 .../styles/layouts/partials/nav-header.scss | 0 .../styles/layouts/partials/paginator.scss | 0 .../layouts/partials/search/search-form.scss | 0 .../styles/layouts/partials/site-footer.scss | 0 .../styles/layouts/partials/site-header.scss | 0 .../assets/styles/layouts/search/list.scss | 0 .../assets/styles/print.scss | 0 .../assets/styles/screen.scss | 0 .../content/_dump/activitypub-2.md | 0 .../content/_dump/activitypub-proglang.md | 0 ...rcles-audiences-vs-lists-vs-collections.md | 0 .../content/_dump}/blocklists-as-hoa.md | 0 .../content/_dump}/context-unaware.md | 0 .../content/_dump/copyright-is-theft.md | 0 .../content/_dump}/deactivating-twitter.md | 0 .../content/_dump}/default-server-paradigm.md | 0 .../content/_dump/defining-quotes.md | 0 .../content/_dump/documentation-first.md | 0 .../content/_dump/domain-number-system.md | 0 .../content/_dump/drowning-in-awareness.md | 0 .../_dump}/fcc-repeals-net-neutrality.md | 0 .../_dump}/fedi-as-reformist-option.md | 0 .../content/_dump}/implicit-vs-explicit.md | 0 .../content/_dump}/mainstreaming-mastodon.md | 0 .../making-better-stuff-is-unprofitable.md | 0 .../content/_dump/mastodon-api-value.md | 0 .../content/_dump}/nation-stateificiation.md | 0 .../content/_dump/plaintext-xml-json.md | 0 .../content/_dump/services-vs-communities.md | 0 .../content/_dump/shorts-are-too-long.md | 0 .../content/_dump/social-media-failure.md | 0 .../content/_dump/social.md | 0 .../_dump/socialhub-threads}/_index.md | 0 .../dereferencing-non-https.md | 0 .../exposing-edit-history.md | 0 .../follow-arbitrary-collections.md | 0 .../multi-protocol-approach.md | 56 +++++++ .../note-vs-article-distinction.md | 2 +- .../notification-to-refetch-object.md | 0 .../signaling-side-effects-async.md | 0 .../stricter-spec-for-collections.md | 0 .../content/_dump}/stop-using-crossposters.md | 0 .../content/_dump/w3c-http-supremacy.md | 0 .../content/_dump/webfinger-as-dns.md | 0 .../content/_dump}/why-read-theory.md | 0 .../threads => blog.hugo/content}/_index.md | 0 blog.hugo/content/_search.md | 7 + blog.hugo/content/threads/_index.md | 6 + .../threads/art-not-commodity/index.md | 0 .../content/threads/blocked/index.md | 0 .../content/threads/boktai-3/index.md | 0 .../content/threads/camera-gear/index.md | 0 .../content/threads/crossposters/index.md | 0 .../threads/deactivating-twitter/index.md | 0 .../content/threads/fedi-vs-web/index.md | 0 .../threads/gun-culture-in-america/index.md | 0 .../threads/liberalism-and-trump/index.md | 0 .../mastodon-as-twitter-do-over/index.md | 0 .../content/threads/misc.md | 0 .../threads/multiple-accounts/index.md | 0 .../content/threads/necromancy/index.md | 0 .../content/threads/neoliberalism/index.md | 0 .../threads/net-neutrality-repealed/index.md | 0 .../content/threads/physical-bodies/index.md | 0 .../threads/product-vs-profit/index.md | 0 .../content/threads/reading-theory/index.md | 0 .../threads/responsive-web-design/index.md | 0 .../smartphones-and-capitalism/index.md | 0 .../threads/syndicalism-is-dead/index.md | 0 .../the-web-not-only-for-profit/index.md | 0 .../content/threads/ubi/index.md | 0 .../content/threads/voluntarism/index.md | 0 {threads.hugo => blog.hugo}/deploy | 0 blog.hugo/hugo.toml | 9 ++ .../layouts/_default/baseof.html | 0 .../layouts/_default/list.html | 0 .../layouts/_default/search.html | 6 +- .../layouts/_default/single.html | 0 .../layouts/index.html | 0 .../layouts/index.json | 0 .../layouts/partials/nav-header.html | 0 .../layouts/partials/paginator.html | 0 .../layouts/partials/search/search-form.html | 0 .../layouts/partials/search/search-index.html | 4 + blog.hugo/layouts/partials/seo.html | 153 ++++++++++++++++++ .../layouts/partials/site-footer.html | 0 .../layouts/partials/site-header.html | 2 +- blog.hugo/layouts/shortcodes/toc.html | 6 + .../archetypes/comments.md | 0 .../archetypes/notes.md | 0 .../assets/scripts/main.js | 0 .../assets/scripts/search.js | 0 .../assets/styles/common/base.scss | 0 .../assets/styles/common/colors.scss | 0 .../assets/styles/common/content.scss | 0 .../assets/styles/common/reset.scss | 0 .../assets/styles/features/headings.scss | 0 .../assets/styles/features/links.scss | 0 .../assets/styles/features/search.scss | 0 .../styles/features/syntax-highlighting.scss | 0 .../assets/styles/layouts/index.scss | 0 .../assets/styles/mixins/fab-unit.scss | 0 .../assets/styles/mixins/shadow.scss | 0 .../assets/styles/partials/h-card.scss | 0 .../assets/styles/print.scss | 0 .../assets/styles/screen.scss | 0 .../content/_index.md | 0 .../content/comments}/_index.md | 0 .../index.md | 0 .../comments/status-as-a-service/index.md | 0 .../content/notes/100040916509633482/index.md | 0 .../notes/108588546793521204/image.png | Bin .../content/notes/108588546793521204/index.md | 0 .../content/notes/99865201213509948/index.md | 0 .../content/notes/99918136079992108/index.md | 0 .../content/notes/99963583159619719/index.md | 0 .../content/notes/99987017261137486/index.md | 0 .../content/notes/99999893512052394/index.md | 0 .../content/notes}/_index.md | 0 .../content/shares/99985686693364517/index.md | 0 {profile.hugo => profile.test.hugo}/hugo.toml | 0 .../index.html | 0 .../_default/_markup/render-heading.html | 0 .../layouts/_default/baseof.html | 0 .../layouts/_default/list.html | 0 .../layouts/_default/single.html | 0 .../layouts/comments/single.html | 0 .../layouts/index.html | 0 .../layouts/index.json | 0 .../layouts/notes/single.html | 0 .../layouts/partials/h-card.html | 0 .../layouts/partials/seo.html | 0 .../partials/styles/external-links.html | 0 .../layouts/search/list.html | 0 .../static/avatar.png | Bin .../static/avatar2.png | Bin .../static/header.jpg | Bin threads.hugo/content/search/_index.md | 3 - threads.hugo/hugo.toml | 6 - .../layouts/partials/search/search-index.html | 3 - threads.hugo/layouts/partials/seo.html | 132 --------------- wiki.hugo/assets/scripts/search.js | 4 +- .../_dump.md | 0 wiki.hugo/hugo.toml | 2 +- wiki.hugo/layouts/_default/list.html | 2 +- .../partials/{name.html => firstH1.html} | 0 .../layouts/partials/search/search-index.html | 2 +- wiki.hugo/layouts/partials/seo.html | 2 +- wiki.hugo/layouts/search/list.html | 5 +- 159 files changed, 261 insertions(+), 154 deletions(-) rename {threads.hugo => blog.hugo}/archetypes/default.md (100%) rename {profile.hugo => blog.hugo}/assets/scripts/main.js (100%) rename {threads.hugo => blog.hugo}/assets/scripts/search.js (97%) rename {threads.hugo => blog.hugo}/assets/styles/common.scss (100%) rename {threads.hugo => blog.hugo}/assets/styles/common/reset.scss (100%) rename {threads.hugo => blog.hugo}/assets/styles/common/variables.scss (100%) rename {threads.hugo => blog.hugo}/assets/styles/layouts/_default/baseof.scss (100%) rename {threads.hugo => blog.hugo}/assets/styles/layouts/_default/list.scss (100%) rename {threads.hugo => blog.hugo}/assets/styles/layouts/_default/single.scss (100%) rename {threads.hugo => blog.hugo}/assets/styles/layouts/index.scss (100%) rename {threads.hugo => blog.hugo}/assets/styles/layouts/partials/nav-header.scss (100%) rename {threads.hugo => blog.hugo}/assets/styles/layouts/partials/paginator.scss (100%) rename {threads.hugo => blog.hugo}/assets/styles/layouts/partials/search/search-form.scss (100%) rename {threads.hugo => blog.hugo}/assets/styles/layouts/partials/site-footer.scss (100%) rename {threads.hugo => blog.hugo}/assets/styles/layouts/partials/site-header.scss (100%) rename {threads.hugo => blog.hugo}/assets/styles/layouts/search/list.scss (100%) rename {threads.hugo => blog.hugo}/assets/styles/print.scss (100%) rename {threads.hugo => blog.hugo}/assets/styles/screen.scss (100%) rename {wiki.hugo => blog.hugo}/content/_dump/activitypub-2.md (100%) rename {wiki.hugo => blog.hugo}/content/_dump/activitypub-proglang.md (100%) rename {wiki.hugo/content/_dump/fedi-threads-to-republish-as-articles => blog.hugo/content/_dump}/aspects-circles-audiences-vs-lists-vs-collections.md (100%) rename {wiki.hugo/content/_dump/fedi-critiques => blog.hugo/content/_dump}/blocklists-as-hoa.md (100%) rename {wiki.hugo/content/_dump/fedi-critiques => blog.hugo/content/_dump}/context-unaware.md (100%) rename {wiki.hugo => blog.hugo}/content/_dump/copyright-is-theft.md (100%) rename {wiki.hugo/content/_dump/fedi-threads-to-republish-as-articles => blog.hugo/content/_dump}/deactivating-twitter.md (100%) rename {wiki.hugo/content/_dump/fedi-critiques => blog.hugo/content/_dump}/default-server-paradigm.md (100%) rename {wiki.hugo => blog.hugo}/content/_dump/defining-quotes.md (100%) rename {wiki.hugo => blog.hugo}/content/_dump/documentation-first.md (100%) rename {wiki.hugo => blog.hugo}/content/_dump/domain-number-system.md (100%) rename {wiki.hugo => blog.hugo}/content/_dump/drowning-in-awareness.md (100%) rename {wiki.hugo/content/_dump/fedi-threads-to-republish-as-articles => blog.hugo/content/_dump}/fcc-repeals-net-neutrality.md (100%) rename {wiki.hugo/content/_dump/fedi-critiques => blog.hugo/content/_dump}/fedi-as-reformist-option.md (100%) rename {wiki.hugo/content/_dump/fedi-critiques => blog.hugo/content/_dump}/implicit-vs-explicit.md (100%) rename {wiki.hugo/content/_dump/fedi-critiques => blog.hugo/content/_dump}/mainstreaming-mastodon.md (100%) rename {wiki.hugo/content/_dump/fedi-threads-to-republish-as-articles => blog.hugo/content/_dump}/making-better-stuff-is-unprofitable.md (100%) rename {wiki.hugo => blog.hugo}/content/_dump/mastodon-api-value.md (100%) rename {wiki.hugo/content/_dump/fedi-critiques => blog.hugo/content/_dump}/nation-stateificiation.md (100%) rename {wiki.hugo => blog.hugo}/content/_dump/plaintext-xml-json.md (100%) rename {wiki.hugo => blog.hugo}/content/_dump/services-vs-communities.md (100%) rename {wiki.hugo => blog.hugo}/content/_dump/shorts-are-too-long.md (100%) rename {wiki.hugo => blog.hugo}/content/_dump/social-media-failure.md (100%) rename {wiki.hugo => blog.hugo}/content/_dump/social.md (100%) rename {profile.hugo/content/comments => blog.hugo/content/_dump/socialhub-threads}/_index.md (100%) rename {wiki.hugo => blog.hugo}/content/_dump/socialhub-threads/dereferencing-non-https.md (100%) rename {wiki.hugo => blog.hugo}/content/_dump/socialhub-threads/exposing-edit-history.md (100%) rename {wiki.hugo => blog.hugo}/content/_dump/socialhub-threads/follow-arbitrary-collections.md (100%) create mode 100644 blog.hugo/content/_dump/socialhub-threads/multi-protocol-approach.md rename {wiki.hugo => blog.hugo}/content/_dump/socialhub-threads/note-vs-article-distinction.md (98%) rename {wiki.hugo => blog.hugo}/content/_dump/socialhub-threads/notification-to-refetch-object.md (100%) rename {wiki.hugo => blog.hugo}/content/_dump/socialhub-threads/signaling-side-effects-async.md (100%) rename {wiki.hugo => blog.hugo}/content/_dump/socialhub-threads/stricter-spec-for-collections.md (100%) rename {wiki.hugo/content/_dump/fedi-threads-to-republish-as-articles => blog.hugo/content/_dump}/stop-using-crossposters.md (100%) rename {wiki.hugo => blog.hugo}/content/_dump/w3c-http-supremacy.md (100%) rename {wiki.hugo => blog.hugo}/content/_dump/webfinger-as-dns.md (100%) rename {wiki.hugo/content/_dump/fedi-threads-to-republish-as-articles => blog.hugo/content/_dump}/why-read-theory.md (100%) rename {threads.hugo/content/threads => blog.hugo/content}/_index.md (100%) create mode 100644 blog.hugo/content/_search.md create mode 100644 blog.hugo/content/threads/_index.md rename {threads.hugo => blog.hugo}/content/threads/art-not-commodity/index.md (100%) rename {threads.hugo => blog.hugo}/content/threads/blocked/index.md (100%) rename {threads.hugo => blog.hugo}/content/threads/boktai-3/index.md (100%) rename {threads.hugo => blog.hugo}/content/threads/camera-gear/index.md (100%) rename {threads.hugo => blog.hugo}/content/threads/crossposters/index.md (100%) rename {threads.hugo => blog.hugo}/content/threads/deactivating-twitter/index.md (100%) rename {threads.hugo => blog.hugo}/content/threads/fedi-vs-web/index.md (100%) rename {threads.hugo => blog.hugo}/content/threads/gun-culture-in-america/index.md (100%) rename {threads.hugo => blog.hugo}/content/threads/liberalism-and-trump/index.md (100%) rename {threads.hugo => blog.hugo}/content/threads/mastodon-as-twitter-do-over/index.md (100%) rename {threads.hugo => blog.hugo}/content/threads/misc.md (100%) rename {threads.hugo => blog.hugo}/content/threads/multiple-accounts/index.md (100%) rename {threads.hugo => blog.hugo}/content/threads/necromancy/index.md (100%) rename {threads.hugo => blog.hugo}/content/threads/neoliberalism/index.md (100%) rename {threads.hugo => blog.hugo}/content/threads/net-neutrality-repealed/index.md (100%) rename {threads.hugo => blog.hugo}/content/threads/physical-bodies/index.md (100%) rename {threads.hugo => blog.hugo}/content/threads/product-vs-profit/index.md (100%) rename {threads.hugo => blog.hugo}/content/threads/reading-theory/index.md (100%) rename {threads.hugo => blog.hugo}/content/threads/responsive-web-design/index.md (100%) rename {threads.hugo => blog.hugo}/content/threads/smartphones-and-capitalism/index.md (100%) rename {threads.hugo => blog.hugo}/content/threads/syndicalism-is-dead/index.md (100%) rename {threads.hugo => blog.hugo}/content/threads/the-web-not-only-for-profit/index.md (100%) rename {threads.hugo => blog.hugo}/content/threads/ubi/index.md (100%) rename {threads.hugo => blog.hugo}/content/threads/voluntarism/index.md (100%) rename {threads.hugo => blog.hugo}/deploy (100%) create mode 100644 blog.hugo/hugo.toml rename {threads.hugo => blog.hugo}/layouts/_default/baseof.html (100%) rename {threads.hugo => blog.hugo}/layouts/_default/list.html (100%) rename threads.hugo/layouts/search/list.html => blog.hugo/layouts/_default/search.html (86%) rename {threads.hugo => blog.hugo}/layouts/_default/single.html (100%) rename {threads.hugo => blog.hugo}/layouts/index.html (100%) rename {profile.hugo => blog.hugo}/layouts/index.json (100%) rename {threads.hugo => blog.hugo}/layouts/partials/nav-header.html (100%) rename {threads.hugo => blog.hugo}/layouts/partials/paginator.html (100%) rename {threads.hugo => blog.hugo}/layouts/partials/search/search-form.html (100%) create mode 100644 blog.hugo/layouts/partials/search/search-index.html create mode 100644 blog.hugo/layouts/partials/seo.html rename {threads.hugo => blog.hugo}/layouts/partials/site-footer.html (100%) rename {threads.hugo => blog.hugo}/layouts/partials/site-header.html (93%) create mode 100644 blog.hugo/layouts/shortcodes/toc.html rename {profile.hugo => profile.test.hugo}/archetypes/comments.md (100%) rename {profile.hugo => profile.test.hugo}/archetypes/notes.md (100%) rename {threads.hugo => profile.test.hugo}/assets/scripts/main.js (100%) rename {profile.hugo => profile.test.hugo}/assets/scripts/search.js (100%) rename {profile.hugo => profile.test.hugo}/assets/styles/common/base.scss (100%) rename {profile.hugo => profile.test.hugo}/assets/styles/common/colors.scss (100%) rename {profile.hugo => profile.test.hugo}/assets/styles/common/content.scss (100%) rename {profile.hugo => profile.test.hugo}/assets/styles/common/reset.scss (100%) rename {profile.hugo => profile.test.hugo}/assets/styles/features/headings.scss (100%) rename {profile.hugo => profile.test.hugo}/assets/styles/features/links.scss (100%) rename {profile.hugo => profile.test.hugo}/assets/styles/features/search.scss (100%) rename {profile.hugo => profile.test.hugo}/assets/styles/features/syntax-highlighting.scss (100%) rename {profile.hugo => profile.test.hugo}/assets/styles/layouts/index.scss (100%) rename {profile.hugo => profile.test.hugo}/assets/styles/mixins/fab-unit.scss (100%) rename {profile.hugo => profile.test.hugo}/assets/styles/mixins/shadow.scss (100%) rename {profile.hugo => profile.test.hugo}/assets/styles/partials/h-card.scss (100%) rename {profile.hugo => profile.test.hugo}/assets/styles/print.scss (100%) rename {profile.hugo => profile.test.hugo}/assets/styles/screen.scss (100%) rename {profile.hugo => profile.test.hugo}/content/_index.md (100%) rename {profile.hugo/content/notes => profile.test.hugo/content/comments}/_index.md (100%) rename {profile.hugo => profile.test.hugo}/content/comments/smartphones-arent-as-exciting-as-they-used-to-be/index.md (100%) rename {profile.hugo => profile.test.hugo}/content/comments/status-as-a-service/index.md (100%) rename {profile.hugo => profile.test.hugo}/content/notes/100040916509633482/index.md (100%) rename {profile.hugo => profile.test.hugo}/content/notes/108588546793521204/image.png (100%) rename {profile.hugo => profile.test.hugo}/content/notes/108588546793521204/index.md (100%) rename {profile.hugo => profile.test.hugo}/content/notes/99865201213509948/index.md (100%) rename {profile.hugo => profile.test.hugo}/content/notes/99918136079992108/index.md (100%) rename {profile.hugo => profile.test.hugo}/content/notes/99963583159619719/index.md (100%) rename {profile.hugo => profile.test.hugo}/content/notes/99987017261137486/index.md (100%) rename {profile.hugo => profile.test.hugo}/content/notes/99999893512052394/index.md (100%) rename {wiki.hugo/content/_dump/socialhub-threads => profile.test.hugo/content/notes}/_index.md (100%) rename {profile.hugo => profile.test.hugo}/content/shares/99985686693364517/index.md (100%) rename {profile.hugo => profile.test.hugo}/hugo.toml (100%) rename {profile.hugo => profile.test.hugo}/index.html (100%) rename {profile.hugo => profile.test.hugo}/layouts/_default/_markup/render-heading.html (100%) rename {profile.hugo => profile.test.hugo}/layouts/_default/baseof.html (100%) rename {profile.hugo => profile.test.hugo}/layouts/_default/list.html (100%) rename {profile.hugo => profile.test.hugo}/layouts/_default/single.html (100%) rename {profile.hugo => profile.test.hugo}/layouts/comments/single.html (100%) rename {profile.hugo => profile.test.hugo}/layouts/index.html (100%) rename {threads.hugo => profile.test.hugo}/layouts/index.json (100%) rename {profile.hugo => profile.test.hugo}/layouts/notes/single.html (100%) rename {profile.hugo => profile.test.hugo}/layouts/partials/h-card.html (100%) rename {profile.hugo => profile.test.hugo}/layouts/partials/seo.html (100%) rename {profile.hugo => profile.test.hugo}/layouts/partials/styles/external-links.html (100%) rename {profile.hugo => profile.test.hugo}/layouts/search/list.html (100%) rename {profile.hugo => profile.test.hugo}/static/avatar.png (100%) rename {profile.hugo => profile.test.hugo}/static/avatar2.png (100%) rename {profile.hugo => profile.test.hugo}/static/header.jpg (100%) delete mode 100644 threads.hugo/content/search/_index.md delete mode 100644 threads.hugo/hugo.toml delete mode 100644 threads.hugo/layouts/partials/search/search-index.html delete mode 100644 threads.hugo/layouts/partials/seo.html delete mode 100644 wiki.hugo/content/_dump/fedi-threads-to-republish-as-articles/_dump.md rename wiki.hugo/layouts/partials/{name.html => firstH1.html} (100%) diff --git a/threads.hugo/archetypes/default.md b/blog.hugo/archetypes/default.md similarity index 100% rename from threads.hugo/archetypes/default.md rename to blog.hugo/archetypes/default.md diff --git a/profile.hugo/assets/scripts/main.js b/blog.hugo/assets/scripts/main.js similarity index 100% rename from profile.hugo/assets/scripts/main.js rename to blog.hugo/assets/scripts/main.js diff --git a/threads.hugo/assets/scripts/search.js b/blog.hugo/assets/scripts/search.js similarity index 97% rename from threads.hugo/assets/scripts/search.js rename to blog.hugo/assets/scripts/search.js index e8dc3ef..b3c1eb7 100644 --- a/threads.hugo/assets/scripts/search.js +++ b/blog.hugo/assets/scripts/search.js @@ -11,7 +11,8 @@ const WORD_REGEX = /\b(\w*)[\W|\s|\b]?/gm async function initSearch() { try { - const response = await fetch("/index.json"); + const indexJsonUrl = document.getElementById("base-url").dataset["baseUrl"] + "/index.json"; + const response = await fetch(indexJsonUrl); pagesIndex = await response.json(); searchIndex = lunr(function () { this.field("title"); diff --git a/threads.hugo/assets/styles/common.scss b/blog.hugo/assets/styles/common.scss similarity index 100% rename from threads.hugo/assets/styles/common.scss rename to blog.hugo/assets/styles/common.scss diff --git a/threads.hugo/assets/styles/common/reset.scss b/blog.hugo/assets/styles/common/reset.scss similarity index 100% rename from threads.hugo/assets/styles/common/reset.scss rename to blog.hugo/assets/styles/common/reset.scss diff --git a/threads.hugo/assets/styles/common/variables.scss b/blog.hugo/assets/styles/common/variables.scss similarity index 100% rename from threads.hugo/assets/styles/common/variables.scss rename to blog.hugo/assets/styles/common/variables.scss diff --git a/threads.hugo/assets/styles/layouts/_default/baseof.scss b/blog.hugo/assets/styles/layouts/_default/baseof.scss similarity index 100% rename from threads.hugo/assets/styles/layouts/_default/baseof.scss rename to blog.hugo/assets/styles/layouts/_default/baseof.scss diff --git a/threads.hugo/assets/styles/layouts/_default/list.scss b/blog.hugo/assets/styles/layouts/_default/list.scss similarity index 100% rename from threads.hugo/assets/styles/layouts/_default/list.scss rename to blog.hugo/assets/styles/layouts/_default/list.scss diff --git a/threads.hugo/assets/styles/layouts/_default/single.scss b/blog.hugo/assets/styles/layouts/_default/single.scss similarity index 100% rename from threads.hugo/assets/styles/layouts/_default/single.scss rename to blog.hugo/assets/styles/layouts/_default/single.scss diff --git a/threads.hugo/assets/styles/layouts/index.scss b/blog.hugo/assets/styles/layouts/index.scss similarity index 100% rename from threads.hugo/assets/styles/layouts/index.scss rename to blog.hugo/assets/styles/layouts/index.scss diff --git a/threads.hugo/assets/styles/layouts/partials/nav-header.scss b/blog.hugo/assets/styles/layouts/partials/nav-header.scss similarity index 100% rename from threads.hugo/assets/styles/layouts/partials/nav-header.scss rename to blog.hugo/assets/styles/layouts/partials/nav-header.scss diff --git a/threads.hugo/assets/styles/layouts/partials/paginator.scss b/blog.hugo/assets/styles/layouts/partials/paginator.scss similarity index 100% rename from threads.hugo/assets/styles/layouts/partials/paginator.scss rename to blog.hugo/assets/styles/layouts/partials/paginator.scss diff --git a/threads.hugo/assets/styles/layouts/partials/search/search-form.scss b/blog.hugo/assets/styles/layouts/partials/search/search-form.scss similarity index 100% rename from threads.hugo/assets/styles/layouts/partials/search/search-form.scss rename to blog.hugo/assets/styles/layouts/partials/search/search-form.scss diff --git a/threads.hugo/assets/styles/layouts/partials/site-footer.scss b/blog.hugo/assets/styles/layouts/partials/site-footer.scss similarity index 100% rename from threads.hugo/assets/styles/layouts/partials/site-footer.scss rename to blog.hugo/assets/styles/layouts/partials/site-footer.scss diff --git a/threads.hugo/assets/styles/layouts/partials/site-header.scss b/blog.hugo/assets/styles/layouts/partials/site-header.scss similarity index 100% rename from threads.hugo/assets/styles/layouts/partials/site-header.scss rename to blog.hugo/assets/styles/layouts/partials/site-header.scss diff --git a/threads.hugo/assets/styles/layouts/search/list.scss b/blog.hugo/assets/styles/layouts/search/list.scss similarity index 100% rename from threads.hugo/assets/styles/layouts/search/list.scss rename to blog.hugo/assets/styles/layouts/search/list.scss diff --git a/threads.hugo/assets/styles/print.scss b/blog.hugo/assets/styles/print.scss similarity index 100% rename from threads.hugo/assets/styles/print.scss rename to blog.hugo/assets/styles/print.scss diff --git a/threads.hugo/assets/styles/screen.scss b/blog.hugo/assets/styles/screen.scss similarity index 100% rename from threads.hugo/assets/styles/screen.scss rename to blog.hugo/assets/styles/screen.scss diff --git a/wiki.hugo/content/_dump/activitypub-2.md b/blog.hugo/content/_dump/activitypub-2.md similarity index 100% rename from wiki.hugo/content/_dump/activitypub-2.md rename to blog.hugo/content/_dump/activitypub-2.md diff --git a/wiki.hugo/content/_dump/activitypub-proglang.md b/blog.hugo/content/_dump/activitypub-proglang.md similarity index 100% rename from wiki.hugo/content/_dump/activitypub-proglang.md rename to blog.hugo/content/_dump/activitypub-proglang.md diff --git a/wiki.hugo/content/_dump/fedi-threads-to-republish-as-articles/aspects-circles-audiences-vs-lists-vs-collections.md b/blog.hugo/content/_dump/aspects-circles-audiences-vs-lists-vs-collections.md similarity index 100% rename from wiki.hugo/content/_dump/fedi-threads-to-republish-as-articles/aspects-circles-audiences-vs-lists-vs-collections.md rename to blog.hugo/content/_dump/aspects-circles-audiences-vs-lists-vs-collections.md diff --git a/wiki.hugo/content/_dump/fedi-critiques/blocklists-as-hoa.md b/blog.hugo/content/_dump/blocklists-as-hoa.md similarity index 100% rename from wiki.hugo/content/_dump/fedi-critiques/blocklists-as-hoa.md rename to blog.hugo/content/_dump/blocklists-as-hoa.md diff --git a/wiki.hugo/content/_dump/fedi-critiques/context-unaware.md b/blog.hugo/content/_dump/context-unaware.md similarity index 100% rename from wiki.hugo/content/_dump/fedi-critiques/context-unaware.md rename to blog.hugo/content/_dump/context-unaware.md diff --git a/wiki.hugo/content/_dump/copyright-is-theft.md b/blog.hugo/content/_dump/copyright-is-theft.md similarity index 100% rename from wiki.hugo/content/_dump/copyright-is-theft.md rename to blog.hugo/content/_dump/copyright-is-theft.md diff --git a/wiki.hugo/content/_dump/fedi-threads-to-republish-as-articles/deactivating-twitter.md b/blog.hugo/content/_dump/deactivating-twitter.md similarity index 100% rename from wiki.hugo/content/_dump/fedi-threads-to-republish-as-articles/deactivating-twitter.md rename to blog.hugo/content/_dump/deactivating-twitter.md diff --git a/wiki.hugo/content/_dump/fedi-critiques/default-server-paradigm.md b/blog.hugo/content/_dump/default-server-paradigm.md similarity index 100% rename from wiki.hugo/content/_dump/fedi-critiques/default-server-paradigm.md rename to blog.hugo/content/_dump/default-server-paradigm.md diff --git a/wiki.hugo/content/_dump/defining-quotes.md b/blog.hugo/content/_dump/defining-quotes.md similarity index 100% rename from wiki.hugo/content/_dump/defining-quotes.md rename to blog.hugo/content/_dump/defining-quotes.md diff --git a/wiki.hugo/content/_dump/documentation-first.md b/blog.hugo/content/_dump/documentation-first.md similarity index 100% rename from wiki.hugo/content/_dump/documentation-first.md rename to blog.hugo/content/_dump/documentation-first.md diff --git a/wiki.hugo/content/_dump/domain-number-system.md b/blog.hugo/content/_dump/domain-number-system.md similarity index 100% rename from wiki.hugo/content/_dump/domain-number-system.md rename to blog.hugo/content/_dump/domain-number-system.md diff --git a/wiki.hugo/content/_dump/drowning-in-awareness.md b/blog.hugo/content/_dump/drowning-in-awareness.md similarity index 100% rename from wiki.hugo/content/_dump/drowning-in-awareness.md rename to blog.hugo/content/_dump/drowning-in-awareness.md diff --git a/wiki.hugo/content/_dump/fedi-threads-to-republish-as-articles/fcc-repeals-net-neutrality.md b/blog.hugo/content/_dump/fcc-repeals-net-neutrality.md similarity index 100% rename from wiki.hugo/content/_dump/fedi-threads-to-republish-as-articles/fcc-repeals-net-neutrality.md rename to blog.hugo/content/_dump/fcc-repeals-net-neutrality.md diff --git a/wiki.hugo/content/_dump/fedi-critiques/fedi-as-reformist-option.md b/blog.hugo/content/_dump/fedi-as-reformist-option.md similarity index 100% rename from wiki.hugo/content/_dump/fedi-critiques/fedi-as-reformist-option.md rename to blog.hugo/content/_dump/fedi-as-reformist-option.md diff --git a/wiki.hugo/content/_dump/fedi-critiques/implicit-vs-explicit.md b/blog.hugo/content/_dump/implicit-vs-explicit.md similarity index 100% rename from wiki.hugo/content/_dump/fedi-critiques/implicit-vs-explicit.md rename to blog.hugo/content/_dump/implicit-vs-explicit.md diff --git a/wiki.hugo/content/_dump/fedi-critiques/mainstreaming-mastodon.md b/blog.hugo/content/_dump/mainstreaming-mastodon.md similarity index 100% rename from wiki.hugo/content/_dump/fedi-critiques/mainstreaming-mastodon.md rename to blog.hugo/content/_dump/mainstreaming-mastodon.md diff --git a/wiki.hugo/content/_dump/fedi-threads-to-republish-as-articles/making-better-stuff-is-unprofitable.md b/blog.hugo/content/_dump/making-better-stuff-is-unprofitable.md similarity index 100% rename from wiki.hugo/content/_dump/fedi-threads-to-republish-as-articles/making-better-stuff-is-unprofitable.md rename to blog.hugo/content/_dump/making-better-stuff-is-unprofitable.md diff --git a/wiki.hugo/content/_dump/mastodon-api-value.md b/blog.hugo/content/_dump/mastodon-api-value.md similarity index 100% rename from wiki.hugo/content/_dump/mastodon-api-value.md rename to blog.hugo/content/_dump/mastodon-api-value.md diff --git a/wiki.hugo/content/_dump/fedi-critiques/nation-stateificiation.md b/blog.hugo/content/_dump/nation-stateificiation.md similarity index 100% rename from wiki.hugo/content/_dump/fedi-critiques/nation-stateificiation.md rename to blog.hugo/content/_dump/nation-stateificiation.md diff --git a/wiki.hugo/content/_dump/plaintext-xml-json.md b/blog.hugo/content/_dump/plaintext-xml-json.md similarity index 100% rename from wiki.hugo/content/_dump/plaintext-xml-json.md rename to blog.hugo/content/_dump/plaintext-xml-json.md diff --git a/wiki.hugo/content/_dump/services-vs-communities.md b/blog.hugo/content/_dump/services-vs-communities.md similarity index 100% rename from wiki.hugo/content/_dump/services-vs-communities.md rename to blog.hugo/content/_dump/services-vs-communities.md diff --git a/wiki.hugo/content/_dump/shorts-are-too-long.md b/blog.hugo/content/_dump/shorts-are-too-long.md similarity index 100% rename from wiki.hugo/content/_dump/shorts-are-too-long.md rename to blog.hugo/content/_dump/shorts-are-too-long.md diff --git a/wiki.hugo/content/_dump/social-media-failure.md b/blog.hugo/content/_dump/social-media-failure.md similarity index 100% rename from wiki.hugo/content/_dump/social-media-failure.md rename to blog.hugo/content/_dump/social-media-failure.md diff --git a/wiki.hugo/content/_dump/social.md b/blog.hugo/content/_dump/social.md similarity index 100% rename from wiki.hugo/content/_dump/social.md rename to blog.hugo/content/_dump/social.md diff --git a/profile.hugo/content/comments/_index.md b/blog.hugo/content/_dump/socialhub-threads/_index.md similarity index 100% rename from profile.hugo/content/comments/_index.md rename to blog.hugo/content/_dump/socialhub-threads/_index.md diff --git a/wiki.hugo/content/_dump/socialhub-threads/dereferencing-non-https.md b/blog.hugo/content/_dump/socialhub-threads/dereferencing-non-https.md similarity index 100% rename from wiki.hugo/content/_dump/socialhub-threads/dereferencing-non-https.md rename to blog.hugo/content/_dump/socialhub-threads/dereferencing-non-https.md diff --git a/wiki.hugo/content/_dump/socialhub-threads/exposing-edit-history.md b/blog.hugo/content/_dump/socialhub-threads/exposing-edit-history.md similarity index 100% rename from wiki.hugo/content/_dump/socialhub-threads/exposing-edit-history.md rename to blog.hugo/content/_dump/socialhub-threads/exposing-edit-history.md diff --git a/wiki.hugo/content/_dump/socialhub-threads/follow-arbitrary-collections.md b/blog.hugo/content/_dump/socialhub-threads/follow-arbitrary-collections.md similarity index 100% rename from wiki.hugo/content/_dump/socialhub-threads/follow-arbitrary-collections.md rename to blog.hugo/content/_dump/socialhub-threads/follow-arbitrary-collections.md diff --git a/blog.hugo/content/_dump/socialhub-threads/multi-protocol-approach.md b/blog.hugo/content/_dump/socialhub-threads/multi-protocol-approach.md new file mode 100644 index 0000000..d6893fb --- /dev/null +++ b/blog.hugo/content/_dump/socialhub-threads/multi-protocol-approach.md @@ -0,0 +1,56 @@ ++++ +title = "re: starting to investigate other protocols" +summary = "The main thing I'm trying to formulate right now is a generic understanding of what is a protocol and what makes up a protocol." +date = "2023-01-02T21:00:00-06:00" +source = "https://socialhub.activitypub.rocks/t/socialwebfoundation-what-do-people-think/4564/13" +inReplyTo = "https://socialhub.activitypub.rocks/t/socialwebfoundation-what-do-people-think/4564/12" ++++ + +
+

And from an activist perspective, I’d be very loud about starting to investigate other protocols – and why you’re doing it.

+
+ +If anything, the recent developments have definitely gotten me to more seriously revisit some ideas I had a few years back about a multi-protocol approach[^multi-proto-approach] and how best to synthesize several different protocols that have similar or different approaches to certain things. The main thing I'm trying to formulate right now is a generic understanding of what is a protocol and what makes up a protocol. To give an example limited to just 3 "protocols" that mostly work off of from/to semantics, we can look at SMTP, XMPP, and ActivityPub. + +- Data format: SMTP is more or less plaintext, XMPP is XML, and ActivityPub is JSON. +- Message payload format: SMTP uses RFC 822 messages, XMPP uses stanzas, and ActivityPub uses AS2 Activities. +- Message semantics: SMTP messages have headers and body content. XMPP stanzas can be message, presence, or information query. ActivityPub activities... are activities. That's it. + +So before you even get to the part where you can do anything interesting, you find that ActivityPub is really not much of a protocol. All three of these protocols let you "send and receive", but there's more to communication than just sending and receiving. So, given that, what does ActivityPub *actually* provide? + +The best I can describe it right now, ActivityPub provides the following "protocols" layered on top of LDN: + +- A protocol for "following". You send a `Follow`, it can trigger an `Accept` or `Reject`, you can `Undo` it later, and there are side effects of being added to `followers`/`following`. +- A protocol for "liking". You send a `Like`, there are side effects of being added to the `likes` collection. +- A protocol for "(re)sharing". You send an `Announce`, there are side effects of being added to the `shares` collection. + +Everything else is far too undefined or under-defined to constitute much of a "protocol". Things like Create have "surprisingly few side effects" according to the ActivityPub TR, because they were intended for the C2S API to be able to do basic CRUD and Collection management. But in the fediverse, Create actually has a lot more to it! So if we were to define a basic "social media post" application protocol for the lowest common denominator of most of the current fediverse, then we need to define more than what the ActivityPub spec concerns itself with, just to get to "hello world" levels of functionality. We need to explicitly define the following additional things to get from "AP Create notification" to "social media post" in its most limited form: + +- You send a `Create` where the `object` is a `Note`. + - The object MUST have `content` whose value is a string. + - The content MUST conform to some sanitized subset of HTML. + - The object MUST have a `published` whose value is a string containing a timestamp. + - The object MUST have an `attributedTo` whose value is exactly one actor. + - The actor MUST be of type `Person`. + - The actor MUST have a `name` whose value is a string. + - The name MUST be plain text, and will be interpreted as plain text. + - The actor MUST have an `icon` whose value is the URL to a 1:1 image file. + - The actor MUST have a `preferredUsername` whose value is a string. + - The username MUST be unique on the domain. + - The username MUST link back to the actor when querying that actor's domain's WebFinger endpoint for an `acct:` URI formed of the username and the domain. + - The object MUST have `to` or `cc` or both, whose value is an array which contains at least `https://www.w3.org/ns/activitystreams#Public`. + +Now, I'm simplifying a bit, so the above has the following caveats: + +- Requirements can be relaxed or willfully violated as various needs arise. For example, if an actor is missing an `icon`, the protocol can be modified such that a "default avatar" is assumed instead. +- Requirements can also be added or extended as the protocol matures and develops. For example, support for `inReplyTo`, `attachment`, `tag` can be added over time. +- Protocols may require other protocols or specifications. For example, WebFinger in the above "social media post" protocol. +- Additional protocols would be need to be defined for each use case. For example, a similar protocol for "making a blog post" could be defined using `Create Article`. +- Specifications ideally ought to be followed, but ultimately the real protocol is what implementers end up doing, and the above protocol codifies some mistakes and errors into itself. For example, hard assumptions of actor and object types, hard requirements on the maximum cardinality of properties like `attributedTo`, soft requirements for specifically `https://www.w3.org/ns/activitystreams#Public` instead of `as:Public`. (All of these things represent real incorrect assumptions by real implementers.) + +When you put it like this, it becomes clear that if the fediverse wants to continue to make use of ActivityPub, then there are a *lot* of things that need to be explicitly defined as protocols layered[^protocol-layering] on top of ActivityPub. The "implicit protocol of the fediverse" is not sufficiently described by "the ActivityPub specification". We need to standardize and align on common patterns and common protocols for those patterns. + +And the challenge here, the issue is, that if we don't do this work at a grassroots level, then Meta will do it for us. (Can you imagine a "developer portal" for "interoperating with Threads"?) Things like the FEP process allow writing up these "micro-protocols", and then after that, the difficult task of cat-herding begins, as you need to get implementers onboard with adhering to these specifications. And of course, we're all mostly doing this in our free time and without access to the resources that larger organizations have or can gain access to. So it's going to be an uphill battle. But whichever "protocol building blocks" we can agree and align upon, let's go for it. + +[^multi-proto-approach]: I was specifically looking at a "unified communication" project, which mapped abstract forms of communication like "messaging", "publishing", "discussing", "reading" onto existing protocols like SMTP, XMPP, ActivityPub, IRC, RSS, ATOM, HTTP. There's a risk of ending up with something like Pidgin here, but maybe that's not the worst thing. +[^protocol-layering]: And of course, other protocols and other layerings are possible. Libervia (formerly Salut a Toi) does AS2 with PubSub over XMPP, but offers an "ActivityPub gateway". You could, if you wanted to, send AS2 over an SMTP transport. \ No newline at end of file diff --git a/wiki.hugo/content/_dump/socialhub-threads/note-vs-article-distinction.md b/blog.hugo/content/_dump/socialhub-threads/note-vs-article-distinction.md similarity index 98% rename from wiki.hugo/content/_dump/socialhub-threads/note-vs-article-distinction.md rename to blog.hugo/content/_dump/socialhub-threads/note-vs-article-distinction.md index 710ac50..ea075d0 100644 --- a/wiki.hugo/content/_dump/socialhub-threads/note-vs-article-distinction.md +++ b/blog.hugo/content/_dump/socialhub-threads/note-vs-article-distinction.md @@ -156,4 +156,4 @@ the thing is, though, that it’s really seeming like if we use “syndication ## current thoughts -i wrote a whole thing abt this [here]({{< relref "note-vs-article" >}}) \ No newline at end of file +i wrote a whole thing abt this [here](https://trwnh.com/wiki/tech/spec/activitypub/confusion/note-vs-article/) \ No newline at end of file diff --git a/wiki.hugo/content/_dump/socialhub-threads/notification-to-refetch-object.md b/blog.hugo/content/_dump/socialhub-threads/notification-to-refetch-object.md similarity index 100% rename from wiki.hugo/content/_dump/socialhub-threads/notification-to-refetch-object.md rename to blog.hugo/content/_dump/socialhub-threads/notification-to-refetch-object.md diff --git a/wiki.hugo/content/_dump/socialhub-threads/signaling-side-effects-async.md b/blog.hugo/content/_dump/socialhub-threads/signaling-side-effects-async.md similarity index 100% rename from wiki.hugo/content/_dump/socialhub-threads/signaling-side-effects-async.md rename to blog.hugo/content/_dump/socialhub-threads/signaling-side-effects-async.md diff --git a/wiki.hugo/content/_dump/socialhub-threads/stricter-spec-for-collections.md b/blog.hugo/content/_dump/socialhub-threads/stricter-spec-for-collections.md similarity index 100% rename from wiki.hugo/content/_dump/socialhub-threads/stricter-spec-for-collections.md rename to blog.hugo/content/_dump/socialhub-threads/stricter-spec-for-collections.md diff --git a/wiki.hugo/content/_dump/fedi-threads-to-republish-as-articles/stop-using-crossposters.md b/blog.hugo/content/_dump/stop-using-crossposters.md similarity index 100% rename from wiki.hugo/content/_dump/fedi-threads-to-republish-as-articles/stop-using-crossposters.md rename to blog.hugo/content/_dump/stop-using-crossposters.md diff --git a/wiki.hugo/content/_dump/w3c-http-supremacy.md b/blog.hugo/content/_dump/w3c-http-supremacy.md similarity index 100% rename from wiki.hugo/content/_dump/w3c-http-supremacy.md rename to blog.hugo/content/_dump/w3c-http-supremacy.md diff --git a/wiki.hugo/content/_dump/webfinger-as-dns.md b/blog.hugo/content/_dump/webfinger-as-dns.md similarity index 100% rename from wiki.hugo/content/_dump/webfinger-as-dns.md rename to blog.hugo/content/_dump/webfinger-as-dns.md diff --git a/wiki.hugo/content/_dump/fedi-threads-to-republish-as-articles/why-read-theory.md b/blog.hugo/content/_dump/why-read-theory.md similarity index 100% rename from wiki.hugo/content/_dump/fedi-threads-to-republish-as-articles/why-read-theory.md rename to blog.hugo/content/_dump/why-read-theory.md diff --git a/threads.hugo/content/threads/_index.md b/blog.hugo/content/_index.md similarity index 100% rename from threads.hugo/content/threads/_index.md rename to blog.hugo/content/_index.md diff --git a/blog.hugo/content/_search.md b/blog.hugo/content/_search.md new file mode 100644 index 0000000..aa59033 --- /dev/null +++ b/blog.hugo/content/_search.md @@ -0,0 +1,7 @@ ++++ +layout = "search" +url = "search" +name = "Search results" +[_build] +list = "never" ++++ \ No newline at end of file diff --git a/blog.hugo/content/threads/_index.md b/blog.hugo/content/threads/_index.md new file mode 100644 index 0000000..d51ae88 --- /dev/null +++ b/blog.hugo/content/threads/_index.md @@ -0,0 +1,6 @@ ++++ +title = "some of my threads out of context" +summary = "mostly a compilation of times i replied to myself on social media or in chat" ++++ + +[[rejected outtakes]](misc.md) \ No newline at end of file diff --git a/threads.hugo/content/threads/art-not-commodity/index.md b/blog.hugo/content/threads/art-not-commodity/index.md similarity index 100% rename from threads.hugo/content/threads/art-not-commodity/index.md rename to blog.hugo/content/threads/art-not-commodity/index.md diff --git a/threads.hugo/content/threads/blocked/index.md b/blog.hugo/content/threads/blocked/index.md similarity index 100% rename from threads.hugo/content/threads/blocked/index.md rename to blog.hugo/content/threads/blocked/index.md diff --git a/threads.hugo/content/threads/boktai-3/index.md b/blog.hugo/content/threads/boktai-3/index.md similarity index 100% rename from threads.hugo/content/threads/boktai-3/index.md rename to blog.hugo/content/threads/boktai-3/index.md diff --git a/threads.hugo/content/threads/camera-gear/index.md b/blog.hugo/content/threads/camera-gear/index.md similarity index 100% rename from threads.hugo/content/threads/camera-gear/index.md rename to blog.hugo/content/threads/camera-gear/index.md diff --git a/threads.hugo/content/threads/crossposters/index.md b/blog.hugo/content/threads/crossposters/index.md similarity index 100% rename from threads.hugo/content/threads/crossposters/index.md rename to blog.hugo/content/threads/crossposters/index.md diff --git a/threads.hugo/content/threads/deactivating-twitter/index.md b/blog.hugo/content/threads/deactivating-twitter/index.md similarity index 100% rename from threads.hugo/content/threads/deactivating-twitter/index.md rename to blog.hugo/content/threads/deactivating-twitter/index.md diff --git a/threads.hugo/content/threads/fedi-vs-web/index.md b/blog.hugo/content/threads/fedi-vs-web/index.md similarity index 100% rename from threads.hugo/content/threads/fedi-vs-web/index.md rename to blog.hugo/content/threads/fedi-vs-web/index.md diff --git a/threads.hugo/content/threads/gun-culture-in-america/index.md b/blog.hugo/content/threads/gun-culture-in-america/index.md similarity index 100% rename from threads.hugo/content/threads/gun-culture-in-america/index.md rename to blog.hugo/content/threads/gun-culture-in-america/index.md diff --git a/threads.hugo/content/threads/liberalism-and-trump/index.md b/blog.hugo/content/threads/liberalism-and-trump/index.md similarity index 100% rename from threads.hugo/content/threads/liberalism-and-trump/index.md rename to blog.hugo/content/threads/liberalism-and-trump/index.md diff --git a/threads.hugo/content/threads/mastodon-as-twitter-do-over/index.md b/blog.hugo/content/threads/mastodon-as-twitter-do-over/index.md similarity index 100% rename from threads.hugo/content/threads/mastodon-as-twitter-do-over/index.md rename to blog.hugo/content/threads/mastodon-as-twitter-do-over/index.md diff --git a/threads.hugo/content/threads/misc.md b/blog.hugo/content/threads/misc.md similarity index 100% rename from threads.hugo/content/threads/misc.md rename to blog.hugo/content/threads/misc.md diff --git a/threads.hugo/content/threads/multiple-accounts/index.md b/blog.hugo/content/threads/multiple-accounts/index.md similarity index 100% rename from threads.hugo/content/threads/multiple-accounts/index.md rename to blog.hugo/content/threads/multiple-accounts/index.md diff --git a/threads.hugo/content/threads/necromancy/index.md b/blog.hugo/content/threads/necromancy/index.md similarity index 100% rename from threads.hugo/content/threads/necromancy/index.md rename to blog.hugo/content/threads/necromancy/index.md diff --git a/threads.hugo/content/threads/neoliberalism/index.md b/blog.hugo/content/threads/neoliberalism/index.md similarity index 100% rename from threads.hugo/content/threads/neoliberalism/index.md rename to blog.hugo/content/threads/neoliberalism/index.md diff --git a/threads.hugo/content/threads/net-neutrality-repealed/index.md b/blog.hugo/content/threads/net-neutrality-repealed/index.md similarity index 100% rename from threads.hugo/content/threads/net-neutrality-repealed/index.md rename to blog.hugo/content/threads/net-neutrality-repealed/index.md diff --git a/threads.hugo/content/threads/physical-bodies/index.md b/blog.hugo/content/threads/physical-bodies/index.md similarity index 100% rename from threads.hugo/content/threads/physical-bodies/index.md rename to blog.hugo/content/threads/physical-bodies/index.md diff --git a/threads.hugo/content/threads/product-vs-profit/index.md b/blog.hugo/content/threads/product-vs-profit/index.md similarity index 100% rename from threads.hugo/content/threads/product-vs-profit/index.md rename to blog.hugo/content/threads/product-vs-profit/index.md diff --git a/threads.hugo/content/threads/reading-theory/index.md b/blog.hugo/content/threads/reading-theory/index.md similarity index 100% rename from threads.hugo/content/threads/reading-theory/index.md rename to blog.hugo/content/threads/reading-theory/index.md diff --git a/threads.hugo/content/threads/responsive-web-design/index.md b/blog.hugo/content/threads/responsive-web-design/index.md similarity index 100% rename from threads.hugo/content/threads/responsive-web-design/index.md rename to blog.hugo/content/threads/responsive-web-design/index.md diff --git a/threads.hugo/content/threads/smartphones-and-capitalism/index.md b/blog.hugo/content/threads/smartphones-and-capitalism/index.md similarity index 100% rename from threads.hugo/content/threads/smartphones-and-capitalism/index.md rename to blog.hugo/content/threads/smartphones-and-capitalism/index.md diff --git a/threads.hugo/content/threads/syndicalism-is-dead/index.md b/blog.hugo/content/threads/syndicalism-is-dead/index.md similarity index 100% rename from threads.hugo/content/threads/syndicalism-is-dead/index.md rename to blog.hugo/content/threads/syndicalism-is-dead/index.md diff --git a/threads.hugo/content/threads/the-web-not-only-for-profit/index.md b/blog.hugo/content/threads/the-web-not-only-for-profit/index.md similarity index 100% rename from threads.hugo/content/threads/the-web-not-only-for-profit/index.md rename to blog.hugo/content/threads/the-web-not-only-for-profit/index.md diff --git a/threads.hugo/content/threads/ubi/index.md b/blog.hugo/content/threads/ubi/index.md similarity index 100% rename from threads.hugo/content/threads/ubi/index.md rename to blog.hugo/content/threads/ubi/index.md diff --git a/threads.hugo/content/threads/voluntarism/index.md b/blog.hugo/content/threads/voluntarism/index.md similarity index 100% rename from threads.hugo/content/threads/voluntarism/index.md rename to blog.hugo/content/threads/voluntarism/index.md diff --git a/threads.hugo/deploy b/blog.hugo/deploy similarity index 100% rename from threads.hugo/deploy rename to blog.hugo/deploy diff --git a/blog.hugo/hugo.toml b/blog.hugo/hugo.toml new file mode 100644 index 0000000..5b7429d --- /dev/null +++ b/blog.hugo/hugo.toml @@ -0,0 +1,9 @@ +baseURL = 'https://trwnh.com/blog/' +languageCode = 'en-us' +title = '~a blog' +markup.goldmark.renderer.unsafe = true + +pagination.pagerSize = 100 + +[outputs] +home = ["HTML", "JSON"] diff --git a/threads.hugo/layouts/_default/baseof.html b/blog.hugo/layouts/_default/baseof.html similarity index 100% rename from threads.hugo/layouts/_default/baseof.html rename to blog.hugo/layouts/_default/baseof.html diff --git a/threads.hugo/layouts/_default/list.html b/blog.hugo/layouts/_default/list.html similarity index 100% rename from threads.hugo/layouts/_default/list.html rename to blog.hugo/layouts/_default/list.html diff --git a/threads.hugo/layouts/search/list.html b/blog.hugo/layouts/_default/search.html similarity index 86% rename from threads.hugo/layouts/search/list.html rename to blog.hugo/layouts/_default/search.html index 0207e80..34581ea 100644 --- a/threads.hugo/layouts/search/list.html +++ b/blog.hugo/layouts/_default/search.html @@ -1,8 +1,13 @@ +{{ define "head" }} +{{ partial "search/search-index.html" . }} +{{ end }} + {{ define "main" }}
+ {{ partial "search/search-form.html" . }}

for ""

@@ -18,5 +23,4 @@ -{{ partial "search/search-index.html" . }} {{ end }} \ No newline at end of file diff --git a/threads.hugo/layouts/_default/single.html b/blog.hugo/layouts/_default/single.html similarity index 100% rename from threads.hugo/layouts/_default/single.html rename to blog.hugo/layouts/_default/single.html diff --git a/threads.hugo/layouts/index.html b/blog.hugo/layouts/index.html similarity index 100% rename from threads.hugo/layouts/index.html rename to blog.hugo/layouts/index.html diff --git a/profile.hugo/layouts/index.json b/blog.hugo/layouts/index.json similarity index 100% rename from profile.hugo/layouts/index.json rename to blog.hugo/layouts/index.json diff --git a/threads.hugo/layouts/partials/nav-header.html b/blog.hugo/layouts/partials/nav-header.html similarity index 100% rename from threads.hugo/layouts/partials/nav-header.html rename to blog.hugo/layouts/partials/nav-header.html diff --git a/threads.hugo/layouts/partials/paginator.html b/blog.hugo/layouts/partials/paginator.html similarity index 100% rename from threads.hugo/layouts/partials/paginator.html rename to blog.hugo/layouts/partials/paginator.html diff --git a/threads.hugo/layouts/partials/search/search-form.html b/blog.hugo/layouts/partials/search/search-form.html similarity index 100% rename from threads.hugo/layouts/partials/search/search-form.html rename to blog.hugo/layouts/partials/search/search-form.html diff --git a/blog.hugo/layouts/partials/search/search-index.html b/blog.hugo/layouts/partials/search/search-index.html new file mode 100644 index 0000000..6a752b5 --- /dev/null +++ b/blog.hugo/layouts/partials/search/search-index.html @@ -0,0 +1,4 @@ + +{{ $js := resources.Get "scripts/search.js" | minify | fingerprint }} + +
\ No newline at end of file diff --git a/blog.hugo/layouts/partials/seo.html b/blog.hugo/layouts/partials/seo.html new file mode 100644 index 0000000..229b435 --- /dev/null +++ b/blog.hugo/layouts/partials/seo.html @@ -0,0 +1,153 @@ +{{- $title := or .Title $.File.ContentBaseName }} + +{{- $cover := ($.Resources.ByType "image").GetMatch "{*opengraph*}" -}} +{{ $icon := resources.GetMatch (default "" .Site.Params.icon) -}} + +{{/*=== title ===*/}} +{{ "" | safeHTML }} +{{- with .Site.Title }} + +{{- end -}} +{{- if .IsHome}} +{{- with or .Params.name .Site.Title }} +{{ . }} + +{{- end }} +{{- else }} +{{ or .Params.name (print $title " • " .Site.Title) }} + +{{- end -}} + +{{/*=== description ===*/}} +{{- with or .Description .Summary .Site.Params.description }} + + +{{- end }} +{{ "" | safeHTML }} +{{- with .Permalink | absURL}} + + + + +{{- end -}} + +{{/*=== image ===*/}} +{{- $staticIcon := "icon.png" | absURL -}} +{{- with or $cover $icon }} +{{ "" | safeHTML }} + +{{- with .Width }} + +{{- end }} +{{- with .Height }} + +{{- end }} + + +{{- else }} +{{ "" | safeHTML }} + + + +{{- end -}} + +{{/*=== extra params? ===*/}} +{{- with .Params.audio }}{{ end }} +{{- with .Params.locale }}{{ end }} +{{- with .Params.videos }}{{- range . }} + +{{ end }}{{ end }} + +{{/*=== article ===*/}} +{{ with or .Params.author .Site.Params.author -}} +{{ "" | safeHTML }} + +{{- end }} + +{{ "" | safeHTML }} +{{ with .Date -}} + +{{ end -}} +{{ with .Lastmod -}} + +{{ end -}} + +{{/*=== section and keywords ===*/}} +{{- "" | safeHTML }} +{{ with.Params.category -}} + +{{- end -}} +{{- with .Params.tags }} + +{{- end -}} + +{{- if isset .Params "date" }} +{{ "" | safeHTML }} + + + +{{- else }} +{{ "" | safeHTML }} + + +{{- end -}} + +{{/* auxiliary info */}} +{{ "" | safeHTML }} +{{ with $icon }} + +{{- else -}} + +{{- end }} + + + +{{ with .OutputFormats.Get "RSS" -}} + +{{- end -}} + +{{/* robots */}} +{{ "" | safeHTML }} + + diff --git a/threads.hugo/layouts/partials/site-footer.html b/blog.hugo/layouts/partials/site-footer.html similarity index 100% rename from threads.hugo/layouts/partials/site-footer.html rename to blog.hugo/layouts/partials/site-footer.html diff --git a/threads.hugo/layouts/partials/site-header.html b/blog.hugo/layouts/partials/site-header.html similarity index 93% rename from threads.hugo/layouts/partials/site-header.html rename to blog.hugo/layouts/partials/site-header.html index 44c5ee4..7df9e92 100644 --- a/threads.hugo/layouts/partials/site-header.html +++ b/blog.hugo/layouts/partials/site-header.html @@ -1,7 +1,7 @@