diff --git a/_includes/2020/templates/Head.php b/_includes/2020/templates/Head.php index 835955d..91dce37 100644 --- a/_includes/2020/templates/Head.php +++ b/_includes/2020/templates/Head.php @@ -42,6 +42,10 @@ static function render($fields = []) { if(KeymanHosts::Instance()->Tier() == KeymanHosts::TIER_STAGING) { echo ' '; } + if(isset($fields->keywords) && !empty($fields->keywords)) { + $keywords = htmlspecialchars($fields->keywords, ENT_QUOTES, "UTF-8"); + echo "\n"; + } ?> <?= $fields->title; ?> languages)) { + foreach (self::$keyboard->languages as $lang) { + if (!empty($keywords)) { + $keywords = $keywords . ', '; + } + $languageName = $lang->languageName; + $keywords = $keywords . $languageName . ' Keyboard'; + } + } + + // will be ignored if '' + $head_options['keywords'] = $keywords; + head($head_options); if($embed == 'none') { ?>