class Bridgetown::SeoTag::Builder
Public Instance Methods
build()
click to toggle source
# File lib/bridgetown-seo-tag/builder.rb, line 6 def build helper "seo", helpers_scope: true do |title: true| context = Liquid::Context.new({}, {}, { site: site, page: view.page }) tag_output = Liquid::Template.parse( "{% seo #{"title=false" unless title} %}" ).render!(context, {}) tag_output.respond_to?(:html_safe) ? tag_output.html_safe : tag_output end end