freehold-cottage/_plugins/CompanyNameify.rb

9 lines
256 B
Ruby
Raw Normal View History

2022-11-11 04:16:46 +00:00
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)