external.lua (226B)
1 function external(link) 2 href = link.target 3 if string.find(href, "^http") and not string.find(href, "grgr.me") then 4 table.insert(link.attributes, {"rel", "external"}) 5 end 6 return link 7 end 8 9 return {{Link = external}}