32784bc5cb759d55a91b8fd3753f911db2d3f8a6
[blog.git] / debbugs.rb
1 module Jekyll
2 module DebianFilter
3 def deb_bts(input)
4 '<a href="https://bugs.debian.org/%s">#%s</a>' % [input, input]
5 end
6
7 def deb_changelog(input)
8 '<a href="https://changelogs.debian.net/%s">%s</a>' % [input, input]
9 end
10
11 def deb_pkg(input)
12 '<a href="https://packages.debian.org/%s">%s</a>' % [input, input]
13 end
14 end
15 end
16
17 Liquid::Template.register_filter(Jekyll::DebianFilter)