summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFélix Sipma <felix.sipma@no-log.org>2019-10-04 14:31:50 +0200
committerFélix Sipma <felix.sipma@no-log.org>2019-10-04 14:31:50 +0200
commitbc63788f3d5f805e89bca452101daba1280c0e4a (patch)
treeab6b975c44c6ac2ba4cd626c26bf85a532124f40
parente81cae8155a3cc1db2c2995839e444605c647b8b (diff)
improve head
-rw-r--r--config.toml2
-rw-r--r--layouts/_default/baseof.html21
-rw-r--r--layouts/index.html2
3 files changed, 17 insertions, 8 deletions
diff --git a/config.toml b/config.toml
index a153bd2..ad8082c 100644
--- a/config.toml
+++ b/config.toml
@@ -17,4 +17,6 @@ tauxMax = 1.5
dateLimite = "2019-06-15"
longitude = 45.311703
latitude = 4.499096
+countryCode = "FR"
+city = "La Versanne"
crowdfundingURL = "https://api.fermedegouet.fr"
diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html
index 02a77b4..94e8f12 100644
--- a/layouts/_default/baseof.html
+++ b/layouts/_default/baseof.html
@@ -1,15 +1,22 @@
<!DOCTYPE html>
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr-fr">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head>
- <meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1">
<title>{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}</title>
- <meta content="{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}" property="og:title">
- <meta content="{{ delimit .Keywords ", " }}" name="keywords">
- <meta content="{{ $isHomePage := eq .Title .Site.Title }}{{ .Site.Params.description }}{{ if eq $isHomePage false }} - {{ .Title }}{{ end }}" property="og:description">
+ <meta property="og:title" content="{{ $isHomePage := eq .Title .Site.Title }}{{ .Title }}{{ if eq $isHomePage false }} - {{ .Site.Title }}{{ end }}">
+ <meta name="keywords" content="{{ delimit .Keywords ", " }}">
+ <meta property="og:description" content="{{ $isHomePage := eq .Title .Site.Title }}{{ .Site.Params.description }}{{ if eq $isHomePage false }} - {{ .Title }}{{ end }}">
+ <meta name="description" content="{{ $isHomePage := eq .Title .Site.Title }}{{ .Site.Params.description }}{{ if eq $isHomePage false }} - {{ .Title }}{{ end }}">
+ <meta name="ICBM" content="{{ .Site.Params.latitude }}, {{ .Site.Params.longitude }}">
+ <meta name="geo.position" content="{{ .Site.Params.latitude }};{{ .Site.Params.longitude }}">
+ <meta name="geo.region" content="{{ .Site.Params.countryCode }}">
+ <meta name="geo.placename" content="{{ .Site.Params.city }}">
+ <meta name="robots" content="index,follow">
+ <meta name="googlebot" content="index,follow">
+ <meta name="google" content="notranslate">
{{ block "head" . }}{{ end }}
- <link href="{{ "css/ferme.min.css" | relURL }}" rel="stylesheet" type="text/css">
+ <link rel="stylesheet" type="text/css" href="{{ "css/ferme.min.css" | relURL }}">
<link rel="shortcut icon" href="{{ .Site.BaseURL | relURL }}favicon.ico">
</head>
<body class="ferme-body">
@@ -17,7 +24,7 @@
{{ block "header-logo" . }}
{{ end }}
{{ block "menu" .}}
- <nav id="ferme-nav" class="ferme-navbar{{ block "ferme-nav-classes" . }}{{ end }}" role="navigation" aria-label="main navigation">
+ <nav id="ferme-nav" class="ferme-navbar{{ block "ferme-nav-classes" . }}{{ end }}" aria-label="main navigation">
<div class="ferme-navbar-container">
<div class="ferme-navbar-brand">
<a role="button" class="ferme-navbar-burger" aria-label="menu" aria-expanded="false" data-target="ferme-nav-menu">
diff --git a/layouts/index.html b/layouts/index.html
index e63eba0..4fbec55 100644
--- a/layouts/index.html
+++ b/layouts/index.html
@@ -1,5 +1,5 @@
{{ define "head" }}
-<link href="{{ "css/ferme-map.min.css" | relURL }}" rel="stylesheet" type="text/css">
+<link rel="stylesheet" type="text/css" href="{{ "css/ferme-map.min.css" | relURL }}">
{{ end }}
{{ define "footer" }}