Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

meta content whitespace, concatenation, and content bugs #340

Closed
masukomi opened this Issue · 2 comments

2 participants

masukomi Brandon Mathis
masukomi

from source/_includes/head.html

<meta name="description" content="{{ description | strip_newlines | strip_html | truncate:150 }}">

generates

<meta name="description" content="                »___»___»___»___»___»___»___»___»___»___»___»___»___»___»___Tes     t Post2»_»___»___»___»___»___»___»___»___»___»___»___»___»___»___»___»___»___»___  Dec 21st, 2011»___»___»___»___»_     __»___»___»___»___»___»___»___»___»___»___»___»___»___»___»___»___»___»___»___»___»___Test Post 2This&#8230;. is a      test postithasa ...">

each »___ represents a tab.

There are thee problems there

  1. there is a lot of whitespace before the first piece of text and throughout the rest of it (extra tabs and spaces)
  2. at the end you see "test postithasa" that's coming from an unordered list. that looked like the one below. The problem is that whatever processing has happened to it has squished all the list items together creating a nonsense word which doesn't help search engines at all.
  3. the description for the public/index.html probably should not be the same as the description on an individual page. Instead it should be a description of the site.

the list that was concatenated

  • it
  • has
  • a list
Brandon Mathis
Owner

Ugh. Good find.

Brandon Mathis
Owner

In 2.1 We're no longer reading content into the meta description. It was a bad idea.

Brandon Mathis imathis closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.