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"
|
||||
>
|
||||
<head>
|
||||
<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 -->
|
||||
{{- partialCached "head/meta.html" . -}}
|
||||
<meta
|
||||
name="description"
|
||||
content="{{ block "head-description" . }}{{ $.Site.Params.description | html }}{{ end }}"
|
||||
/>
|
||||
<meta
|
||||
name="twitter:dnt"
|
||||
content="on"
|
||||
content="{{- block "head-description" . -}}{{- $.Site.Params.description | html -}}{{- end -}}"
|
||||
/>
|
||||
|
||||
<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