jekyll-mastodon_webfinger 1.0.0 → 1.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1535439f0568c21208d168937f0729e1cec174361ebe24ce8c554d7bf15d80a
4
- data.tar.gz: 78e1b7f75e0f0cbbe9fb33d7b0995616608d8e8b7bc42d0848492779261419d1
3
+ metadata.gz: d3f3b608f5643a67e02ab6336206266460762f38e7566c20e318b7294b91101c
4
+ data.tar.gz: 8653030fe52bebd9510261afab328feeb1d2e4bdaa62d4047358481bfc86e166
5
5
  SHA512:
6
- metadata.gz: 816ee6cd3ff548fd4758e2225fed8dcc443ab3ffaca62ad02886112f8ea46f29f58abd0fadfe9092a6d7791cf753fbcbbaa806ce20bb4084b095380cd815cfd4
7
- data.tar.gz: 9b4c3681b7cd3585e32b3675a9f4efad831c4266b266c6be169af3b4b619e2f1dd6f486a57a121c96676086e4bd77c1d8412f6c653a8eccaecfa0ab558a7fbd6
6
+ metadata.gz: 90b6eabf062e040d7d0b9c6ee865fb7e64f8f3c1394171e69f968a679dec1aa0fc9fb671ac50463a07b96027b57183d4e2e6acbc6dd384880c58f0befcea78b9
7
+ data.tar.gz: e55ed3596acb13b15cfb8e03bc0dcc6e8f9ae30f16b654006cc916b97a126866ed128dfa33bc52e6ff2fe3729243139101cf98b195dc0d1696ee061f485b98e5
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.0.2] - 2022-11-25
4
+
5
+ - Updates hook to use `site.keep_files` instead of `site.config["keep_files"]`
6
+
7
+ ## [1.0.1] - 2022-11-20
8
+
9
+ - Adds hook that includes `.well-known/webfinger` in the `keep_files` config
10
+
3
11
  ## [1.0.0] - 2022-11-19
4
12
 
5
13
  - Initial release
data/README.md CHANGED
@@ -1,9 +1,17 @@
1
1
  # `Jekyll::MastodonWebfinger`
2
2
 
3
- This is a [Jekyll](https://jekyllrb.com/) plugin that adds a [WebFinger](https://webfinger.net/) file to your site, allowing you to use your own domain to help others discover your [Mastodon](https://joinmastodon.org/) profile.
3
+ <h2>Use your Jekyll website domain as an alias for your Mastodon username</h2>
4
+
5
+ This is a [Jekyll](https://jekyllrb.com/) plugin that adds a [WebFinger](https://webfinger.net/) file to your site, allowing you to use your own domain as an alias to help others discover your [Mastodon](https://joinmastodon.org/) profile.
6
+
7
+ <h3>Try it out</h3>
8
+
9
+ Search Mastodon for `@phil@philna.sh` and you will find my Mastodon profile.
4
10
 
5
11
  * [What?](#what)
12
+ * [Alternatives](#alternatives)
6
13
  * [How to use](#how-to-use)
14
+ * [Config](#config)
7
15
  * [Drawbacks](#drawbacks)
8
16
  * [Development](#development)
9
17
  * [Contributing](#contributing)
@@ -12,15 +20,20 @@ This is a [Jekyll](https://jekyllrb.com/) plugin that adds a [WebFinger](https:/
12
20
 
13
21
  ## What?
14
22
 
15
- You may be tempated to run your own Mastodon instance so that you can use your own domain. But that's probably hard work.
23
+ You may be tempted to run your own Mastodon instance so that you can use your own domain. If you don't want the work of managing a server you can instead use your domain as an alias to point to your Mastodon profile.
16
24
 
17
- Instead, you can use your domain to point to your profile on a Mastodon instance that you are signed up to. This uses [WebFinger](https://webfinger.net/), which is a way to attach information to an email address or other online resource. In this case you can point email addresses on your own domain to your Mastodon profile.
25
+ This uses [WebFinger](https://webfinger.net/), which is a way to attach information to an email address or other online resource. In this case you can point email addresses on your own domain to your Mastodon profile.
18
26
 
19
- For example, I have a Mastodon profile at [@philnash@mastodon.social](https://mastodon.social/@philnash). If I add this plugin to my Jekyll site at https://philna.sh and set the username to `philnash` and the instance to `mastodon.social`, then you will be able to find my account by searching for "phil@philna.sh" in any Mastodon instance.
27
+ For example, I have a Mastodon profile at [@philnash@mastodon.social](https://mastodon.social/@philnash). If I add this plugin to my Jekyll site at https://philna.sh and set the username to `philnash` and the instance to `mastodon.social`, then you will be able to find my account by searching for `phil@philna.sh` in any Mastodon instance.
20
28
 
21
29
  For a more in depth explanation, check out [Mastodon on your own domain without hosting a server
22
30
  by Maarten Balliauw](https://blog.maartenballiauw.be/post/2022/11/05/mastodon-own-donain-without-hosting-server.html).
23
31
 
32
+ ### Alternatives
33
+
34
+ * @dkundel's [netlify-plugin-mastodon-alias](https://github.com/dkundel/netlify-plugin-mastodon-alias)
35
+ * Lindsay Kwardell explains [how to integrate Mastodon with Astro](https://www.lindsaykwardell.com/blog/integrate-mastodon-with-astro)
36
+
24
37
  ## How to use
25
38
 
26
39
  Add the gem to your Jekyll site's `Gemfile` by executing:
@@ -33,20 +46,24 @@ Or by opening the `Gemfile`, adding:
33
46
 
34
47
  and then running `bundle install`.
35
48
 
36
- Then in your Jekyll site's `_config.yml` file add your Mastodon account details. For example:
49
+ ### Config
50
+
51
+ You need to add two things to your `_config.yml` file.
52
+
53
+ 1. Add your Mastodon account details. For example:
37
54
 
38
- ```yml
39
- mastodon:
40
- username: philnash
41
- instance: mastodon.social
42
- ```
55
+ ```yml
56
+ mastodon:
57
+ username: philnash
58
+ instance: mastodon.social
59
+ ```
43
60
 
44
- Also, add `jekyll/mastodon_webfinger` to the `plugins` list in `_config.yml`:
61
+ 2. Add `jekyll/mastodon_webfinger` to the `plugins` list:
45
62
 
46
- ```yml
47
- plugins:
48
- - jekyll/mastodon_webfinger
49
- ```
63
+ ```yml
64
+ plugins:
65
+ - jekyll/mastodon_webfinger
66
+ ```
50
67
 
51
68
  Next time you build your Jekyll site, you will find a `/.well-known/` directory in the output with a `webfinger` file that contains the required JSON.
52
69
 
@@ -58,7 +75,7 @@ Since this generates a static file, this actually acts like a catch-all email ad
58
75
 
59
76
  After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
60
77
 
61
- To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
78
+ To install this gem onto your local machine, run `bundle exec rake install`.**** To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
62
79
 
63
80
  ## Contributing
64
81
 
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Jekyll
4
4
  module MastodonWebfinger
5
- VERSION = "1.0.0"
5
+ VERSION = "1.0.2"
6
6
  end
7
7
  end
@@ -4,3 +4,8 @@ require "json"
4
4
  require "jekyll"
5
5
  require_relative "mastodon_webfinger/version"
6
6
  require_relative "mastodon_webfinger/generator"
7
+
8
+ Jekyll::Hooks.register :site, :after_init do |site|
9
+ keep_files = site.keep_files || []
10
+ site.keep_files = keep_files.push(".well-known/webfinger").uniq
11
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll-mastodon_webfinger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Phil Nash
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-19 00:00:00.000000000 Z
11
+ date: 2022-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll