feat: Update meta description and keywords
This commit is contained in:
parent
abe9b7f164
commit
ea32c9cb09
|
@ -12,8 +12,7 @@
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ if .IsHome }}
|
{{ if .IsHome }}
|
||||||
<title>{{ default .Site.Title .Title }}</title>
|
<title>{{ default .Site.Title .Title }}</title>
|
||||||
<meta name="description" content="{{ $.Site.Params.description }}" />
|
<meta name="description" content="{{ default $.Site.Params.description .Description }}" />
|
||||||
<meta name="keywords" content="{{ $.Site.Params.Keywords }}" />
|
|
||||||
<meta property="og:image" content="{{ .Site.BaseURL}}{{ .Site.Params.SocialImage }}" />
|
<meta property="og:image" content="{{ .Site.BaseURL}}{{ .Site.Params.SocialImage }}" />
|
||||||
<meta property="og:url" content="{{ .Site.BaseURL }}" />
|
<meta property="og:url" content="{{ .Site.BaseURL }}" />
|
||||||
<meta property="og:title" content="{{ default .Site.Title .Title }}" />
|
<meta property="og:title" content="{{ default .Site.Title .Title }}" />
|
||||||
|
@ -25,11 +24,7 @@
|
||||||
{{ else }}
|
{{ else }}
|
||||||
<title>{{ .Title }} · {{ .Site.Title }}</title>
|
<title>{{ .Title }} · {{ .Site.Title }}</title>
|
||||||
<meta name="description" content="{{ .Description }}" />
|
<meta name="description" content="{{ .Description }}" />
|
||||||
{{ if .Params.tags }}
|
|
||||||
<meta name="keywords" content="{{ range .Params.tags }}{{ . }},{{ end }}" />
|
|
||||||
{{ else }}
|
|
||||||
<meta name="keywords" content="{{ $.Site.Params.Keywords }}" />
|
|
||||||
{{ end }}
|
|
||||||
<meta property="og:url" content="{{ .Permalink }}" />
|
<meta property="og:url" content="{{ .Permalink }}" />
|
||||||
<meta property="og:title" content="{{ .Title }} · {{ .Site.Title }}" />
|
<meta property="og:title" content="{{ .Title }} · {{ .Site.Title }}" />
|
||||||
<meta name="twitter:title" content="{{ .Title }} · {{ .Site.Title }}" />
|
<meta name="twitter:title" content="{{ .Title }} · {{ .Site.Title }}" />
|
||||||
|
@ -47,3 +42,10 @@
|
||||||
<meta name="twitter:image:src" content="{{ .Site.Params.SocialImage }}" />
|
<meta name="twitter:image:src" content="{{ .Site.Params.SocialImage }}" />
|
||||||
{{ end }}
|
{{ end }}
|
||||||
{{ end }}
|
{{ end }}
|
||||||
|
{{ if .Params.tags }}
|
||||||
|
<meta name="keywords" content="{{ range .Params.tags }}{{ . }},{{ end }}" />
|
||||||
|
{{ else if .Keywords }}
|
||||||
|
<meta name="keywords" content="{{ range .Keywords }}{{ . }},{{ end }}" />
|
||||||
|
{{ else }}
|
||||||
|
<meta name="keywords" content="{{ $.Site.Params.Keywords }}" />
|
||||||
|
{{ end }}
|
||||||
|
|
Loading…
Reference in New Issue