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

Afegir meta keywords #14

Open
espurnes opened this issue May 17, 2017 · 0 comments
Open

Afegir meta keywords #14

espurnes opened this issue May 17, 2017 · 0 comments

Comments

@espurnes
Copy link
Contributor

espurnes commented May 17, 2017

  • Afegir les keywords per defecte a _data/translations.yml sota de les de description.
  • Afegir la lògica per carregar les keywords de pàgina o les per defecte a _includes/head.html seguint la lògica de la description.

<meta name="description" content="{% if page.seo.description %}{{ page.seo.description }}{% else %}{{ T.description[current_language] }}{% endif %}">

és a dir

<meta name="keywords" content="{% if page.seo.keywords %}{{ page.seo.keywords }}{% else %}{{ T.keywords[current_language] }}{% endif %}">

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

No branches or pull requests

1 participant