Skip to content

Commit

Permalink
Another try to disable webmentions but add config
Browse files Browse the repository at this point in the history
  • Loading branch information
danakj committed Dec 4, 2023
1 parent 75a0096 commit e652938
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 3 deletions.
39 changes: 37 additions & 2 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion _layouts/post.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h1 class="post-title p-name" itemprop="name headline">{{ page.title | escape }}
</div>

<div class="webmentions">
<!-- {% webmentions page.url %} -->
<!-- {-% webmentions page.url %} -->
</div>
<a class="u-url" href="{{ page.url | relative_url }}" hidden></a>
</article>
Expand Down

0 comments on commit e652938

Please sign in to comment.