Remove quotes from meta descriptions
SEO stops at that quote, so many of our pages have a description of "the".
This commit is contained in:
parent
166e0b4ef4
commit
3a4e14cfe6
|
@ -27,7 +27,11 @@ helpers do
|
||||||
#
|
#
|
||||||
# @return [String]
|
# @return [String]
|
||||||
def description_for(page)
|
def description_for(page)
|
||||||
return escape_html((page.data.description || "").gsub(/\n+/, ' ').squeeze(' '))
|
description = (page.data.description || "")
|
||||||
|
.gsub('"', '')
|
||||||
|
.gsub("/\n+/", ' ')
|
||||||
|
.squeeze(' ')
|
||||||
|
return escape_html(description)
|
||||||
end
|
end
|
||||||
|
|
||||||
# This helps by setting the "active" class for sidebar nav elements
|
# This helps by setting the "active" class for sidebar nav elements
|
||||||
|
|
Loading…
Reference in New Issue