From c83be3e196927ace9b95e220d17120993f3fd5ff Mon Sep 17 00:00:00 2001 From: Julien Schmidt <js@stusta.net> Date: Wed, 1 Nov 2017 16:46:44 +0100 Subject: [PATCH] extend html head --- layouts/_default/baseof.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index cf3d603..f9243ee 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -1,8 +1,16 @@ <!DOCTYPE html> -<html> +<html lang="{{ $.Site.LanguageCode | default "en" }}">{{ readFile "/data/ascii.txt" | safeHTML }} <head> <meta charset="utf-8"> - <title>{{ .Site.Title }}</title> + <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> + <title>{{ block "title" . }}{{ .Site.Title }}{{ end }}</title> + <meta name="viewport" content="width=device-width,minimum-scale=1"> + {{ if and (isset .Params "noindex") .Params.noindex }} + <meta name="robots" content="noindex"> + {{ end }} + <link href='/styles.css' rel='stylesheet' type="text/css" /> + <link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" /> + <link rel="canonical" href="{{ .Permalink }}"> </head> <body> <!-- Code that all your templates share, like a header --> -- GitLab