setup webmention.io

This commit is contained in:
sloane 2025-01-28 17:53:02 -05:00
parent 2ce341a3b0
commit 22e6fbc3c4
Signed by: sloanelybutsurely
SSH key fingerprint: SHA256:8SBnwhl+RY3oEyQxy1a9wByPzxWM0x+/Ejc+sIlY5qQ
7 changed files with 101 additions and 5 deletions

View file

@ -7,4 +7,5 @@ gem 'webrick'
group :jekyll_plugins do group :jekyll_plugins do
gem 'jekyll-compose' gem 'jekyll-compose'
gem 'jekyll-webmention_io'
end end

View file

@ -1,17 +1,34 @@
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
activesupport (7.2.2.1)
base64
benchmark (>= 0.3)
bigdecimal
concurrent-ruby (~> 1.0, >= 1.3.1)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
logger (>= 1.4.2)
minitest (>= 5.1)
securerandom (>= 0.3)
tzinfo (~> 2.0, >= 2.0.5)
addressable (2.8.7) addressable (2.8.7)
public_suffix (>= 2.0.2, < 7.0) public_suffix (>= 2.0.2, < 7.0)
base64 (0.2.0) base64 (0.2.0)
benchmark (0.4.0)
bigdecimal (3.1.9) bigdecimal (3.1.9)
colorator (1.1.0) colorator (1.1.0)
concurrent-ruby (1.3.5) concurrent-ruby (1.3.5)
connection_pool (2.5.0)
csv (3.3.2) csv (3.3.2)
domain_name (0.6.20240107)
drb (2.2.1)
em-websocket (0.5.3) em-websocket (0.5.3)
eventmachine (>= 0.12.9) eventmachine (>= 0.12.9)
http_parser.rb (~> 0) http_parser.rb (~> 0)
eventmachine (1.2.7) eventmachine (1.2.7)
execjs (2.10.0)
ffi (1.17.1) ffi (1.17.1)
ffi (1.17.1-aarch64-linux-gnu) ffi (1.17.1-aarch64-linux-gnu)
ffi (1.17.1-aarch64-linux-musl) ffi (1.17.1-aarch64-linux-musl)
@ -23,6 +40,9 @@ GEM
ffi (1.17.1-x86_64-darwin) ffi (1.17.1-x86_64-darwin)
ffi (1.17.1-x86_64-linux-gnu) ffi (1.17.1-x86_64-linux-gnu)
ffi (1.17.1-x86_64-linux-musl) ffi (1.17.1-x86_64-linux-musl)
ffi-compiler (1.3.2)
ffi (>= 1.15.5)
rake
forwardable-extended (2.6.0) forwardable-extended (2.6.0)
google-protobuf (4.29.3) google-protobuf (4.29.3)
bigdecimal bigdecimal
@ -42,9 +62,23 @@ GEM
google-protobuf (4.29.3-x86_64-linux) google-protobuf (4.29.3-x86_64-linux)
bigdecimal bigdecimal
rake (>= 13) rake (>= 13)
htmlbeautifier (1.4.3)
http (5.2.0)
addressable (~> 2.8)
base64 (~> 0.1)
http-cookie (~> 1.0)
http-form_data (~> 2.2)
llhttp-ffi (~> 0.5.0)
http-cookie (1.0.8)
domain_name (~> 0.5)
http-form_data (2.3.0)
http_parser.rb (0.8.0) http_parser.rb (0.8.0)
i18n (1.14.7) i18n (1.14.7)
concurrent-ruby (~> 1.0) concurrent-ruby (~> 1.0)
indieweb-endpoints (8.0.0)
http (~> 5.0)
link-header-parser (~> 5.0)
nokogiri (>= 1.13)
jekyll (4.4.0) jekyll (4.4.0)
addressable (~> 2.4) addressable (~> 2.4)
base64 (~> 0.2) base64 (~> 0.2)
@ -70,20 +104,59 @@ GEM
sass-embedded (~> 1.54) sass-embedded (~> 1.54)
jekyll-watch (2.2.1) jekyll-watch (2.2.1)
listen (~> 3.0) listen (~> 3.0)
jekyll-webmention_io (4.0.0)
activesupport (~> 7.0, >= 7.0.4.3)
htmlbeautifier (~> 1.1)
jekyll (>= 3.2.0, < 5.0)
json (~> 2.0)
jsonpath (~> 1.0.1)
openssl (>= 2.0, < 4.0)
uglifier (~> 4.1)
webmention (~> 7.0)
json (2.9.1) json (2.9.1)
jsonpath (1.0.7)
multi_json
kramdown (2.5.1) kramdown (2.5.1)
rexml (>= 3.3.9) rexml (>= 3.3.9)
kramdown-parser-gfm (1.1.0) kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0) kramdown (~> 2.0)
link-header-parser (5.1.1)
liquid (4.0.4) liquid (4.0.4)
listen (3.9.0) listen (3.9.0)
rb-fsevent (~> 0.10, >= 0.10.3) rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10) rb-inotify (~> 0.9, >= 0.9.10)
llhttp-ffi (0.5.0)
ffi-compiler (~> 1.0)
rake (~> 13.0)
logger (1.6.5) logger (1.6.5)
mercenary (0.4.0) mercenary (0.4.0)
mini_portile2 (2.8.8)
minitest (5.25.4)
multi_json (1.15.0)
nokogiri (1.18.2)
mini_portile2 (~> 2.8.2)
racc (~> 1.4)
nokogiri (1.18.2-aarch64-linux-gnu)
racc (~> 1.4)
nokogiri (1.18.2-aarch64-linux-musl)
racc (~> 1.4)
nokogiri (1.18.2-arm-linux-gnu)
racc (~> 1.4)
nokogiri (1.18.2-arm-linux-musl)
racc (~> 1.4)
nokogiri (1.18.2-arm64-darwin)
racc (~> 1.4)
nokogiri (1.18.2-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.18.2-x86_64-linux-gnu)
racc (~> 1.4)
nokogiri (1.18.2-x86_64-linux-musl)
racc (~> 1.4)
openssl (3.3.0)
pathutil (0.16.2) pathutil (0.16.2)
forwardable-extended (~> 2.6) forwardable-extended (~> 2.6)
public_suffix (6.0.1) public_suffix (6.0.1)
racc (1.8.1)
rake (13.2.1) rake (13.2.1)
rb-fsevent (0.11.2) rb-fsevent (0.11.2)
rb-inotify (0.11.1) rb-inotify (0.11.1)
@ -126,9 +199,18 @@ GEM
google-protobuf (~> 4.29) google-protobuf (~> 4.29)
sass-embedded (1.83.4-x86_64-linux-musl) sass-embedded (1.83.4-x86_64-linux-musl)
google-protobuf (~> 4.29) google-protobuf (~> 4.29)
securerandom (0.4.1)
terminal-table (3.0.2) terminal-table (3.0.2)
unicode-display_width (>= 1.1.1, < 3) unicode-display_width (>= 1.1.1, < 3)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
uglifier (4.2.1)
execjs (>= 0.3.0, < 3)
unicode-display_width (2.6.0) unicode-display_width (2.6.0)
webmention (7.0.0)
http (~> 5.0)
indieweb-endpoints (~> 8.0)
nokogiri (>= 1.13)
webrick (1.9.1) webrick (1.9.1)
PLATFORMS PLATFORMS
@ -160,6 +242,7 @@ PLATFORMS
DEPENDENCIES DEPENDENCIES
jekyll jekyll
jekyll-compose jekyll-compose
jekyll-webmention_io
logger logger
webrick webrick

View file

@ -4,7 +4,15 @@ title: "sloane.sh" # the name of your site, e.g. ACME Corp.
permalink: /:categories/:year/:month/:day/:title/index:output_ext permalink: /:categories/:year/:month/:day/:title/index:output_ext
plugins: plugins:
- jekyll-compose - jekyll-compose
- jekyll-webmention_io
webmentions:
username: sloane.sh
syndication:
mastodon:
endpoint: https://brid.gy/publish/mastodon
bluesky:
endpoint: https://brid.gy/publish/bluesky
author: author:
name: sloane name: sloane

View file

@ -12,6 +12,7 @@
</title> </title>
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}"> <link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
<link rel="feed" type="text/html" href="/posts/"> <link rel="feed" type="text/html" href="/posts/">
{% webmentions_head %}
</head> </head>
<body> <body>
{{ content }} {{ content }}

View file

@ -39,8 +39,10 @@ layout: default
<!-- </ul> --> <!-- </ul> -->
<!-- </dd> --> <!-- </dd> -->
</dl> </dl>
{% for service in page.syndicate %} {% webmentions page.url %}
<a href="https://brid.gy/publish/{{ service }}"></a> {% for target in page.syndicate_to %}
<a href="{{ site.webmentions.syndication[target].endpoint }}"></a>
{% endfor %} {% endfor %}
</footer> </footer>
</article> </article>
{% webmentions_js %}

View file

@ -2,8 +2,7 @@
layout: post layout: post
title: syndication test title: syndication test
date: 2025-01-28 17:08 -0500 date: 2025-01-28 17:08 -0500
syndicate: syndicate_to: [ mastodon, bluesky ]
- mastodon
- bluesky
--- ---
This is a test! This is a test!

2
js/JekyllWebmentionIO.js Normal file

File diff suppressed because one or more lines are too long