module Jekyll::ExtLinks

Public Instance Methods

config() click to toggle source

Access plugin config in _config.yml

# File lib/jekyll-extlinks.rb, line 28
def config
  @context.registers[:site].config['extlinks']
end
contains_any(str, fragments) click to toggle source

Checks if str contains any fragment of the fragments array

# File lib/jekyll-extlinks.rb, line 33
def contains_any(str, fragments)
  return false unless Regexp.union(fragments) =~ str
  true
end