From e6529387570deb0b102d04843f21894504e34ee2 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 4 Dec 2023 18:55:02 -0500 Subject: [PATCH] Another try to disable webmentions but add config --- _config.yml | 39 +++++++++++++++++++++++++++++++++++++-- _layouts/post.html | 2 +- 2 files changed, 38 insertions(+), 3 deletions(-) diff --git a/_config.yml b/_config.yml index 150c34d..348057e 100644 --- a/_config.yml +++ b/_config.yml @@ -37,6 +37,41 @@ titles_from_headings: defaults: - scope: path: "" - type: post + type: posts values: - tags: Other + tags: [ Other ] + +webmentions: + username: https://orodu.net + cache_folder: .cache + legacy_domains: + - http://danakj.github.io + templates: + count: _includes/webmentions/count.html + likes: _includes/webmentions/likes.html + links: _includes/webmentions/links.html + posts: _includes/webmentions/posts.html + replies: _includes/webmentions/replies.html + reposts: _includes/webmentions/reposts.html + webmentions: _includes/webmentions/webmentions.html + max_attempts: 5 + bad_uri_policy: + unsupported: + policy: ban + error: + policy: ignore + failure: + policy: retry + retry_delay: [ 1, 12, 48, 120 ] + max_retries: 5 + whitelist: + - "^https://brid.gy/publish/" + blacklist: + - "^https://foo.bar/" + syndication: + mastodon: + endpoint: https://brid.gy/publish/mastodon + response_mapping: + syndication: $.url + github: + endpoint: https://brid.gy/publish/github diff --git a/_layouts/post.html b/_layouts/post.html index cdfb068..9215b87 100644 --- a/_layouts/post.html +++ b/_layouts/post.html @@ -31,7 +31,7 @@

{{ page.title | escape }}
- +