class SiteHealth::MissingTitle
Checks if HTML-meta title is present
Protected Instance Methods
check()
click to toggle source
# File lib/site_health/checkers/missing_title.rb, line 27 def check return if page.redirect? title = page.title.to_s.strip if title.empty? add_issue_type(:missing) elsif title.length > 60 add_issue_type(:too_long) end end