Commit 564ed14f authored by Taddeus Kroes's avatar Taddeus Kroes

Added meta tags for search engines

parent aea60b96
...@@ -8,10 +8,13 @@ require 'DatabaseAuthenticator.php'; ...@@ -8,10 +8,13 @@ require 'DatabaseAuthenticator.php';
* Set locale based on browser language specification, and set up gettext * Set locale based on browser language specification, and set up gettext
*/ */
$lang = 'en';
if ($locale = set_accept_locale(array('nl'))) { if ($locale = set_accept_locale(array('nl'))) {
putenv("LANG=$locale"); putenv("LANG=$locale");
putenv("LC_ALL=$locale"); putenv("LC_ALL=$locale");
putenv("LC_MESSAGES=$locale"); putenv("LC_MESSAGES=$locale");
$lang = 'nl';
} }
$domain = 'archery'; $domain = 'archery';
...@@ -102,5 +105,5 @@ require 'routes/user.php'; ...@@ -102,5 +105,5 @@ require 'routes/user.php';
require 'routes/match.php'; require 'routes/match.php';
// Certain globals should be available in all templates // Certain globals should be available in all templates
$view->replace(compact('app', 'config', 'user')); $view->replace(compact('app', 'config', 'user', 'lang'));
$app->run(); $app->run();
...@@ -215,3 +215,10 @@ msgstr "administrator" ...@@ -215,3 +215,10 @@ msgstr "administrator"
msgid "member" msgid "member"
msgstr "gebruiker" 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 @@ ...@@ -9,17 +9,16 @@
['register', _('Register')] ['register', _('Register')]
]} ]}
<!doctype html> <!doctype html>
<html lang="en"> <html lang="{$lang}">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<title>Archery scorekeeper</title> <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']}/"> <base href="{$config['root_url']}/">
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=0"> <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"> <link rel="stylesheet" href="css/main.css">
{ifset #head} {ifset #head}{include head}{/ifset}
{include head}
{/ifset}
</head> </head>
<body> <body>
<nav class="navbar navbar-default navbar-static-top" role="navigation"> <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} {block content}
<div class="row"> <div class="row">
......
{extends "layout.latte"} {extends "layout_public.latte"}
{block content} {block content}
<div class="row"> <div class="row">
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment