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

fix: Specify HTML lang tag "en" 📓 #489

Merged
merged 7 commits into from
Nov 1, 2024
Merged
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion _includes/2020/templates/Head.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ static function render($fields = []) {
if(!isset($fields->title)) {
$fields->title = 'Keyman | Type to the world in your language';
}
if(empty($fields->language()) {
mcdurdin marked this conversation as resolved.
Show resolved Hide resolved
$fields->language = 'en'; // Default to English
}
if(!isset($fields->favicon)) {
$fields->favicon = Util::cdn("img/favicon.ico");
}
Expand All @@ -23,7 +26,7 @@ static function render($fields = []) {
$fields->js = [];
}
?><!DOCTYPE html>
<html>
<html lang="<?= $fields->language; ?>">
mcdurdin marked this conversation as resolved.
Show resolved Hide resolved
<head>
<meta charset="utf-8">
<?php
Expand Down
Loading