Skip to content
Snippets Groups Projects
Commit 564ed14f authored by Taddeus Kroes's avatar Taddeus Kroes
Browse files

Added meta tags for search engines

parent aea60b96
No related branches found
No related tags found
No related merge requests found
......@@ -8,10 +8,13 @@ require 'DatabaseAuthenticator.php';
* Set locale based on browser language specification, and set up gettext
*/
$lang = 'en';
if ($locale = set_accept_locale(array('nl'))) {
putenv("LANG=$locale");
putenv("LC_ALL=$locale");
putenv("LC_MESSAGES=$locale");
$lang = 'nl';
}
$domain = 'archery';
......@@ -102,5 +105,5 @@ require 'routes/user.php';
require 'routes/match.php';
// Certain globals should be available in all templates
$view->replace(compact('app', 'config', 'user'));
$view->replace(compact('app', 'config', 'user', 'lang'));
$app->run();
......@@ -215,3 +215,10 @@ msgstr "administrator"
msgid "member"
msgstr "gebruiker"
msgid ""
"Responsive (mobile and desktop) website for saving archery scores, e.g. from "
"training or competitions."
msgstr ""
"Responsieve website (voor mobiel en desktop) voor het opslaan van scores "
"behaald tijdens het boogschieten, bijv. training en wedstrijden."
......@@ -9,17 +9,16 @@
['register', _('Register')]
]}
<!doctype html>
<html lang="en">
<html lang="{$lang}">
<head>
<meta charset="UTF-8">
<title>Archery scorekeeper</title>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<base href="{$config['root_url']}/">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0">
{ifset #meta}{include meta}{/ifset}
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<link rel="stylesheet" href="css/main.css">
{ifset #head}
{include head}
{/ifset}
{ifset #head}{include head}{/ifset}
</head>
<body>
<nav class="navbar navbar-default navbar-static-top" role="navigation">
......
{extends "layout.latte"}
{block meta}
<meta name="description" content="{_'Responsive (mobile and desktop) website for saving archery scores, e.g. from training or competitions.'}">
<meta name="robots" content="index, follow">
{/block}
{extends "layout.latte"}
{extends "layout_public.latte"}
{block content}
<div class="row">
......
{extends "layout.latte"}
{extends "layout_public.latte"}
{block content}
<div class="row">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment