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:
parent
71413f55b6
commit
6a25f3eef1
@ -2,11 +2,6 @@
|
|||||||
<html lang="en">
|
<html lang="en">
|
||||||
|
|
||||||
<head>
|
<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" . }}
|
{{ partial "head-meta.html" . }}
|
||||||
|
|
||||||
<base href="{{ .Site.BaseURL }}">
|
<base href="{{ .Site.BaseURL }}">
|
||||||
|
@ -2,6 +2,11 @@
|
|||||||
{{ $description := .Params.description | default .Site.Params.description }}
|
{{ $description := .Params.description | default .Site.Params.description }}
|
||||||
{{ $author := .Params.author | default .Site.Params.author }}
|
{{ $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="description" content="{{ $description }}">
|
||||||
<meta name="author" content="{{ $author }}">
|
<meta name="author" content="{{ $author }}">
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user