mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-27 14:12:09 +00:00
Exclude more URL patterns from static-webmention
This commit is contained in:
parent
a370429a2e
commit
c2404ce552
1 changed files with 1 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -80,7 +80,7 @@ mentions.json: hugo
|
||||||
static-webmentions find
|
static-webmentions find
|
||||||
mv mentions.json mentions.json.unfiltered
|
mv mentions.json mentions.json.unfiltered
|
||||||
# filter the webmentions a bit; jq offers more flexibility than config.toml
|
# filter the webmentions a bit; jq offers more flexibility than config.toml
|
||||||
jq '[ .[] | select(.Dest|test("https://(git.sr.ht/~seirdy/seirdy.one/log/master|seirdy.one|web.archive.org|en.wikipedia.org|matrix.to)") | not) ]' <mentions.json.unfiltered >mentions.json
|
jq '[ .[] | select(.Dest|test("https://(git.sr.ht/~seirdy/seirdy.one/log/master|seirdy.one|web.archive.org|en.wikipedia.org|matrix.to|([a-z]*.)?reddit.com|github.com)") | not) ]' <mentions.json.unfiltered >mentions.json
|
||||||
rm mentions.json.unfiltered
|
rm mentions.json.unfiltered
|
||||||
|
|
||||||
.PHONY: deploy-html
|
.PHONY: deploy-html
|
||||||
|
|
Loading…
Reference in a new issue