explore: Plugin to generate Radicle Explorer URLs

This commit is contained in:
Lorenz Leutgeb
2025-11-06 15:31:09 +01:00
parent 62f9b1606c
commit a9932d6b79
14 changed files with 52 additions and 38 deletions
+15
View File
@@ -0,0 +1,15 @@
module Jekyll
module Explorer
def explore(input)
base = "https://app.radicle.xyz/nodes"
if input.include?(' ')
prefix, suffix = input.split(' ', 2)
"#{base}/#{prefix}/#{suffix}"
else
"#{base}/iris.radicle.xyz/#{input}"
end
end
end
end
Liquid::Template.register_filter(Jekyll::Explorer)