18F / 18f.gsa.gov

The 18F website
https://18f.gsa.gov
Other
292 stars 311 forks source link

BUG: Meta descriptions don't display on most pages #4077

Open AnitaYCheng opened 3 weeks ago

AnitaYCheng commented 3 weeks ago

Expected behavior

There should be content in <meta name="description" content="HOPEFULLY STUFF GOOGLE WILL USE">

image

Actual behavior

Many pages on 18f.gsa.gov have nonexistent meta descriptions. Example: the homepage:

image

One page has a nonsensical description:

image

Observations

The meta.html template only calls description and not many pages actually have a description value in their front matter.

image

Pages in the main nav have lead which is the subheading. Older blog posts have both excerpt and description which are often duplicative. More recent blog posts have excerpts in front matter, used in blog collections. The excerpt is not visible in the blog post itself.

Suggested fixes

AnitaYCheng commented 3 weeks ago

General consensus in the 18F content team is that meta descriptions on the 18F site are a nice-to-have, but not prioritized.

Google (and other search engines) seems to use different things to populate search result descriptions, not always using the meta description content provided on the page.

Although, consolidating the functions of excerpt and description would help reduce confusion when people are creating new blog posts.