Skip to content

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

@AnitaYCheng

Description

@AnitaYCheng

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

  • Meta descriptions set for pages in the main nav (I can ask the content team about this)
  • Consolidate functions of excerpt and description and maybe lead for pages in the main nav

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions