From 5c5800da70ee58890f30bb3130f279a8e119c173 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Vladim=C3=ADr=20Vondru=C5=A1?= Date: Sun, 29 Oct 2017 21:47:42 +0100 Subject: [PATCH] theme: charset meta tag should be first in head. Huh. Makes sense. Reported by https://sonarwhal.com/scanner/. --- doc/css/page-layout.rst | 5 +++-- pelican-theme/templates/base.html | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/doc/css/page-layout.rst b/doc/css/page-layout.rst index 2fd86211..0a1765b9 100644 --- a/doc/css/page-layout.rst +++ b/doc/css/page-layout.rst @@ -45,7 +45,8 @@ more. A barebones HTML markup structure using ``m.css`` looks like below. There is the usual preamble, with :html:`` and a :html:`` tag -specifying the file encoding. Some browsers assume UTF-8 by default (as per the +specifying the file encoding, which should be the first thing in :html:``. +Some browsers assume UTF-8 by default (as per the `HTML5 standard `__), but some not, so it's better to always include it. In the :html:`` element it's important to also specify that the site is responsive via the @@ -61,10 +62,10 @@ have to stick to the shown structure. + Page title -