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

feat(seo): add meta keywords for supported languages #502

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

srl295
Copy link
Member

@srl295 srl295 commented Nov 23, 2024

  • keyboard-details.php: use the langauge name(s) to produce keyboards.
  • template.php: support 'keywords' to pass to head()
  • Head.php: to support keywords as a parameter to head(), rendered as a meta tag. Escape ASCII quotes properly as entities.

Note

This is a little contrived, but showing that the machinery is quoting properly, if the
keywords had the text Some "information" for <you>:

<meta name="keywords" content="Some &quot;information&quot; for <you>, Amharic Keyboard, Basketo Keyboard, Bench Keyboard, Dirasha Keyboard, Dizin Keyboard, Geez Keyboard, Gumuz Keyboard, Konso Keyboard, Suri, Tirmaga-Chai Keyboard, Tigré Keyboard, Zayse Keyboard, Multiple languages Keyboard">

yielding (showing proper unescaping)

> document.getElementsByTagName('meta')[1].getAttribute('content')
'Some "information" for <you>, Amharic Keyboard, Basketo Keyboard, Bench Keyboard, Dirasha Keyboard, Dizin Keyboard, Geez Keyboard, Gumuz Keyboard, Konso Keyboard, Suri, Tirmaga-Chai Keyboard, Tigré Keyboard, Zayse Keyboard, Multiple languages Keyboard'

- keyboard-details.php: use the langauge name(s) to produce keyboards.
- template.php: support 'keywords' to pass to head()
- Head.php: to support keywords as a parameter to head(), rendered as a meta tag. Escape ASCII quotes properly as entities.
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

Successfully merging this pull request may close these issues.

2 participants