setup webmention.io
This commit is contained in:
parent
2ce341a3b0
commit
22e6fbc3c4
7 changed files with 101 additions and 5 deletions
1
Gemfile
1
Gemfile
|
@ -7,4 +7,5 @@ gem 'webrick'
|
|||
|
||||
group :jekyll_plugins do
|
||||
gem 'jekyll-compose'
|
||||
gem 'jekyll-webmention_io'
|
||||
end
|
||||
|
|
83
Gemfile.lock
83
Gemfile.lock
|
@ -1,17 +1,34 @@
|
|||
GEM
|
||||
remote: https://rubygems.org/
|
||||
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)
|
||||
public_suffix (>= 2.0.2, < 7.0)
|
||||
base64 (0.2.0)
|
||||
benchmark (0.4.0)
|
||||
bigdecimal (3.1.9)
|
||||
colorator (1.1.0)
|
||||
concurrent-ruby (1.3.5)
|
||||
connection_pool (2.5.0)
|
||||
csv (3.3.2)
|
||||
domain_name (0.6.20240107)
|
||||
drb (2.2.1)
|
||||
em-websocket (0.5.3)
|
||||
eventmachine (>= 0.12.9)
|
||||
http_parser.rb (~> 0)
|
||||
eventmachine (1.2.7)
|
||||
execjs (2.10.0)
|
||||
ffi (1.17.1)
|
||||
ffi (1.17.1-aarch64-linux-gnu)
|
||||
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-linux-gnu)
|
||||
ffi (1.17.1-x86_64-linux-musl)
|
||||
ffi-compiler (1.3.2)
|
||||
ffi (>= 1.15.5)
|
||||
rake
|
||||
forwardable-extended (2.6.0)
|
||||
google-protobuf (4.29.3)
|
||||
bigdecimal
|
||||
|
@ -42,9 +62,23 @@ GEM
|
|||
google-protobuf (4.29.3-x86_64-linux)
|
||||
bigdecimal
|
||||
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)
|
||||
i18n (1.14.7)
|
||||
concurrent-ruby (~> 1.0)
|
||||
indieweb-endpoints (8.0.0)
|
||||
http (~> 5.0)
|
||||
link-header-parser (~> 5.0)
|
||||
nokogiri (>= 1.13)
|
||||
jekyll (4.4.0)
|
||||
addressable (~> 2.4)
|
||||
base64 (~> 0.2)
|
||||
|
@ -70,20 +104,59 @@ GEM
|
|||
sass-embedded (~> 1.54)
|
||||
jekyll-watch (2.2.1)
|
||||
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)
|
||||
jsonpath (1.0.7)
|
||||
multi_json
|
||||
kramdown (2.5.1)
|
||||
rexml (>= 3.3.9)
|
||||
kramdown-parser-gfm (1.1.0)
|
||||
kramdown (~> 2.0)
|
||||
link-header-parser (5.1.1)
|
||||
liquid (4.0.4)
|
||||
listen (3.9.0)
|
||||
rb-fsevent (~> 0.10, >= 0.10.3)
|
||||
rb-inotify (~> 0.9, >= 0.9.10)
|
||||
llhttp-ffi (0.5.0)
|
||||
ffi-compiler (~> 1.0)
|
||||
rake (~> 13.0)
|
||||
logger (1.6.5)
|
||||
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)
|
||||
forwardable-extended (~> 2.6)
|
||||
public_suffix (6.0.1)
|
||||
racc (1.8.1)
|
||||
rake (13.2.1)
|
||||
rb-fsevent (0.11.2)
|
||||
rb-inotify (0.11.1)
|
||||
|
@ -126,9 +199,18 @@ GEM
|
|||
google-protobuf (~> 4.29)
|
||||
sass-embedded (1.83.4-x86_64-linux-musl)
|
||||
google-protobuf (~> 4.29)
|
||||
securerandom (0.4.1)
|
||||
terminal-table (3.0.2)
|
||||
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)
|
||||
webmention (7.0.0)
|
||||
http (~> 5.0)
|
||||
indieweb-endpoints (~> 8.0)
|
||||
nokogiri (>= 1.13)
|
||||
webrick (1.9.1)
|
||||
|
||||
PLATFORMS
|
||||
|
@ -160,6 +242,7 @@ PLATFORMS
|
|||
DEPENDENCIES
|
||||
jekyll
|
||||
jekyll-compose
|
||||
jekyll-webmention_io
|
||||
logger
|
||||
webrick
|
||||
|
||||
|
|
|
@ -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
|
||||
plugins:
|
||||
- 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:
|
||||
name: sloane
|
||||
|
|
|
@ -12,6 +12,7 @@
|
|||
</title>
|
||||
<link rel="stylesheet" href="{{ "/assets/css/main.css" | relative_url }}">
|
||||
<link rel="feed" type="text/html" href="/posts/">
|
||||
{% webmentions_head %}
|
||||
</head>
|
||||
<body>
|
||||
{{ content }}
|
||||
|
|
|
@ -39,8 +39,10 @@ layout: default
|
|||
<!-- </ul> -->
|
||||
<!-- </dd> -->
|
||||
</dl>
|
||||
{% for service in page.syndicate %}
|
||||
<a href="https://brid.gy/publish/{{ service }}"></a>
|
||||
{% webmentions page.url %}
|
||||
{% for target in page.syndicate_to %}
|
||||
<a href="{{ site.webmentions.syndication[target].endpoint }}"></a>
|
||||
{% endfor %}
|
||||
</footer>
|
||||
</article>
|
||||
{% webmentions_js %}
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
layout: post
|
||||
title: syndication test
|
||||
date: 2025-01-28 17:08 -0500
|
||||
syndicate:
|
||||
- mastodon
|
||||
- bluesky
|
||||
syndicate_to: [ mastodon, bluesky ]
|
||||
---
|
||||
|
||||
This is a test!
|
||||
|
|
2
js/JekyllWebmentionIO.js
Normal file
2
js/JekyllWebmentionIO.js
Normal file
File diff suppressed because one or more lines are too long
Loading…
Reference in a new issue