Class: Yuzu::Renderers::TitleRenderer
- Defined in:
- lib/yuzu/renderers/title.rb
Overview
Renders the html <title> tag.
Instance Method Summary collapse
Methods inherited from Renderer
#initialize, registry, renderers
Constructor Details
This class inherits a constructor from Yuzu::Renderers::Renderer
Instance Method Details
#render(website_file) ⇒ Object
8 9 10 11 12 13 14 15 |
# File 'lib/yuzu/renderers/title.rb', line 8 def render(website_file) config = website_file.config if website_file.root? or website_file.home? config.site_name else "#{website_file.post_title} | #{config.site_name}" end end |