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

Use tags as page keywords #254

Open
chriswilty opened this issue Oct 15, 2024 · 1 comment
Open

Use tags as page keywords #254

chriswilty opened this issue Oct 15, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@chriswilty
Copy link
Member

Pretty much every post has some tags defined: this is a built-in variable for post front matter. However, it looks like these are not really being used: not in the rendered page, not in code logic for finding related posts. The only tag that is used is "featured", to make selected posts sticky (on author and category pages).

How about we add tags as keywords to each post? That should help with SEO.

In _layouts/default.html we would add a new meta tag to hold the keywords, something like this:

  {% unless page.tags == empty %}
  <meta name="keywords" content="{{page.tags | join: ' '}}" />
  {% endif %}
@chriswilty chriswilty added the enhancement New feature or request label Oct 15, 2024
@chriswilty chriswilty changed the title Tags are unused (except for "featured" tag) Use tags as page keywords Oct 15, 2024
@ColinEberhardt
Copy link
Contributor

I think this is worth mocking up to see how it might look - definitely worth considering.

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

No branches or pull requests

2 participants