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

Create script for checking SEO best practices #16

Open
8 tasks
jneidel opened this issue May 19, 2024 · 0 comments
Open
8 tasks

Create script for checking SEO best practices #16

jneidel opened this issue May 19, 2024 · 0 comments
Labels
feature Add functionality seo Improve SEO

Comments

@jneidel
Copy link
Owner

jneidel commented May 19, 2024

requirements

  • check all posts, excluding drafts
  • ignore list

What to check for

All keys refer to the front matter

All with individual error codes

Errors

  • title: <50 chars
  • description: 100-164 chars
    • no description -> test summary
  • all images have alt text (check in img render hook?)
  • if thumbnail file matches -> require thumbnailAlt

Warnings

  • no summary
  • title: >70 chars
  • no thumbnail

implementation notes

  • List all non-draft posts: hugo list all | grep false | cut -d, -f1
  • error codes like: ERR_SHORT_DESC, WARN_LONG_TITLE, WARN_NO_THUMB

usage notes

As pre-push hook.
Fail push on errors, only warn on warnings.

@jneidel jneidel added feature Add functionality seo Improve SEO labels May 19, 2024
jneidel added a commit that referenced this issue Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Add functionality seo Improve SEO
Projects
None yet
Development

No branches or pull requests

1 participant