freehold-cottage/_plugins/CompanyNameify.rb
2022-11-11 04:16:46 +00:00

9 lines
256 B
Ruby

module Jekyll
module CompanyNameify
def switcheroo(input)
return input && input.gsub("company_name", @context.registers[:site].config['company_name'])
end
end
end
Liquid::Template.register_filter(Jekyll::CompanyNameify)