Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AnitaYCheng opened this issue Aug 20, 2024 · 1 comment
Open

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

AnitaYCheng opened this issue Aug 20, 2024 · 1 comment
Labels

Comments

@AnitaYCheng
Copy link
Contributor

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
@AnitaYCheng
Copy link
Contributor Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant