1
0
mirror of https://github.com/alanorth/hugo-theme-bootstrap4-blog.git synced 2024-11-17 17:57:04 +01:00

layouts: Move all meta tags to head-meta.html partial

This commit is contained in:
Alan Orth 2016-09-26 09:26:00 +03:00
parent 71413f55b6
commit 6a25f3eef1
Signed by: alanorth
GPG Key ID: 0FB860CC9C45B1B9
2 changed files with 5 additions and 5 deletions

View File

@ -2,11 +2,6 @@
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
{{ "<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->" | safeHTML }}
{{ partial "head-meta.html" . }}
<base href="{{ .Site.BaseURL }}">

View File

@ -2,6 +2,11 @@
{{ $description := .Params.description | default .Site.Params.description }}
{{ $author := .Params.author | default .Site.Params.author }}
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
{{ "<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->" | safeHTML }}
<meta name="description" content="{{ $description }}">
<meta name="author" content="{{ $author }}">