Module: Jekyll::Secinfo::DivdFilter

Defined in:
lib/jekyll-secinfo/divd.rb

Instance Method Summary collapse

Instance Method Details

#divd(divdtxt, niets = nil) ⇒ Object



47
48
49
50
51
52
53
54
55
56
57
58
# File 'lib/jekyll-secinfo/divd.rb', line 47

def divd(divdtxt, niets = nil)
  if divdtxt
    link = Divd.to_link(divdtxt, @context.registers[:site].config, @context.registers[:page])
    if link
      return link
    else
      return divdtxt
    end
  else
    return ""
  end
end