From 474aab55d53c90384d4035ab12a36d2124b6ae9c Mon Sep 17 00:00:00 2001 From: malkoG Date: Thu, 12 Oct 2023 15:43:18 +0900 Subject: [PATCH] Specify webfinger configuration --- config/initializers.rb | 45 ++++++++++++++++++++++++++++++++++++++++++ src/_data/authors.yml | 14 +++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 config/initializers.rb create mode 100644 src/_data/authors.yml diff --git a/config/initializers.rb b/config/initializers.rb new file mode 100644 index 00000000..24ae7597 --- /dev/null +++ b/config/initializers.rb @@ -0,0 +1,45 @@ +Bridgetown.configure do |config| + # You can configure aspects of your Bridgetown site here instead of using + # `bridgetown.config.yml`. For example: + # + # permalink "simple" + # timezone "America/Los_Angeles" + # + # You can also modify options on the configuration object directly, like so: + # + # config.autoload_paths << "models" + # + + # You can use `init` to initialize various Bridgetown features or plugin gems. + # For example, you can use the Dotenv gem to load environment variables from + # `.env`. Just `bundle add dotenv` and then uncomment this: + # + # init :dotenv + # + + # Uncomment to use Bridgetown SSR (aka dynamic rendering of content via Roda): + # + # init :ssr + # + + # Uncomment to use file-based dynamic template routing via Roda (make sure you + # uncomment the gem dependency in your `Gemfile` as well): + # + # init :"bridgetown-routes" + # + + # We also recommend that if you're using Roda routes you include this plugin + # so you can get a generated routes list in `.routes.json`. You can then run + # `bin/bridgetown roda:routes` to print the routes. (This will require you to + # comment your route blocks. See example in `server/routes/hello.rb.sample`.) + # + # only :server do + # init :parse_routes + # end + # + + # For more documentation on how to configure your site using this initializers file, + # visit: https://edge.bridgetownrb.com/docs/configuration/initializers/ + url "https://kodingwarrior.github.io" + init :"bridgetown-webfinger", static: true +end diff --git a/src/_data/authors.yml b/src/_data/authors.yml new file mode 100644 index 00000000..01398130 --- /dev/null +++ b/src/_data/authors.yml @@ -0,0 +1,14 @@ +--- +# This account will be represented as acct:kodingwarrior@ +kodingwarrior: + webfinger: + # Aliases are URIs that represent the same person + aliases: + - https://twitter.com/kodingwarrior + - https://social.silicon.moe/@kodingwarrior + + links: + # - href: https://example.com/myphoto.png + # rel: http://webfinger.net/rel/avatar + # type: image/png +