use partial for meta section of <head>
This commit is contained in:
parent
15ce6e004f
commit
8ac75f4104
2 changed files with 21 additions and 18 deletions
|
@ -10,26 +10,12 @@
|
||||||
itemtype="https://schema.org/Blog"
|
itemtype="https://schema.org/Blog"
|
||||||
>
|
>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8" />
|
|
||||||
<meta
|
<!-- Meta -->
|
||||||
name="viewport"
|
{{- partialCached "head/meta.html" . -}}
|
||||||
content="width=device-width, initial-scale=1"
|
|
||||||
/>
|
|
||||||
<meta
|
|
||||||
name="robots"
|
|
||||||
content="noindex"
|
|
||||||
/>
|
|
||||||
<meta
|
|
||||||
name="theme-color"
|
|
||||||
content="#FFFFF0"
|
|
||||||
/>
|
|
||||||
<meta
|
<meta
|
||||||
name="description"
|
name="description"
|
||||||
content="{{ block "head-description" . }}{{ $.Site.Params.description | html }}{{ end }}"
|
content="{{- block "head-description" . -}}{{- $.Site.Params.description | html -}}{{- end -}}"
|
||||||
/>
|
|
||||||
<meta
|
|
||||||
name="twitter:dnt"
|
|
||||||
content="on"
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
<title itemprop="name">
|
<title itemprop="name">
|
||||||
|
|
17
layouts/partials/head/meta.html
Normal file
17
layouts/partials/head/meta.html
Normal file
|
@ -0,0 +1,17 @@
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta
|
||||||
|
name="viewport"
|
||||||
|
content="width=device-width, initial-scale=1"
|
||||||
|
/>
|
||||||
|
<meta
|
||||||
|
name="robots"
|
||||||
|
content="noindex"
|
||||||
|
/>
|
||||||
|
<meta
|
||||||
|
name="theme-color"
|
||||||
|
content="#FFFFF0"
|
||||||
|
/>
|
||||||
|
<meta
|
||||||
|
name="twitter:dnt"
|
||||||
|
content="on"
|
||||||
|
/>
|
Loading…
Add table
Add a link
Reference in a new issue