mirror of
https://git.sr.ht/~seirdy/seirdy.one
synced 2024-11-23 12:52:10 +00:00
Compare commits
No commits in common. "3b8b35ce8c974e30222725c3626e02966c3ec60d" and "44336038996f3bda4d0d10cb6020ef4185c8d554" have entirely different histories.
3b8b35ce8c
...
4433603899
2 changed files with 9 additions and 4 deletions
|
@ -69,6 +69,13 @@ disableKinds = ["taxonomy", "term"]
|
|||
url = "/resume/"
|
||||
weight = 40
|
||||
|
||||
[[menu.main]]
|
||||
identifier = "rss"
|
||||
name = "RSS feed"
|
||||
title = "rss feed"
|
||||
url = "/posts/index.xml"
|
||||
weight = 50
|
||||
|
||||
[permalinks]
|
||||
posts = "/posts/:year/:month/:day/:filename"
|
||||
notes = "/notes/:year/:month/:day/:filename"
|
||||
|
|
|
@ -3,10 +3,8 @@
|
|||
<p>This site supports <a href="https://indieweb.org/webmention">Webmentions</a>. Webmentions received for this post will appear in the following list after I approve them. I sometimes send Webmentions to myself on behalf of linking sites that don't support them. Check the <a href="https://web.archive.org/">Wayback Machine</a> if any links are broken.</p>
|
||||
<dl>
|
||||
{{- $target := .RelPermalink | replaceRE "^/~seirdy/" "/" }}
|
||||
{{- $oldTarget := $target | replaceRE "/posts" "" | replaceRE "/$" ".html" -}}
|
||||
{{ $url1 := printf "https://seirdy.one/webmentions/get?status=approved&target=https://seirdy.one%s" $target -}}
|
||||
{{ $url2 := printf "https://seirdy.one/webmentions/get?status=approved&target=https://seirdy.one%s" $oldTarget -}}
|
||||
{{ $webmentions := (getJSON $url1) | append (getJSON $url2) -}}
|
||||
{{ $url := printf "https://seirdy.one/webmentions/get?status=approved&target=https://seirdy.one%s" $target -}}
|
||||
{{ $webmentions := getJSON $url -}}
|
||||
{{ range $webmentions -}}
|
||||
{{ $webmention := . -}}
|
||||
{{ if (eq $webmention.type "like") -}}
|
||||
|
|
Loading…
Reference in a new issue