mirror of
https://seed.radicle.dev/rad:z371PVmDHdjJucejRoRYJcDEvD5pp.git
synced 2026-11-15 07:50:37 +08:00
16 lines
347 B
Ruby
16 lines
347 B
Ruby
module Jekyll
|
|
module Explorer
|
|
def explore(input)
|
|
base = "https://radicle.network/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)
|