Add meta keywords for SEO (#49)
This commit is contained in:
@@ -17,6 +17,7 @@ pygmentsStyle = "monokai"
|
|||||||
avatarSize = "size-m"
|
avatarSize = "size-m"
|
||||||
customHeadHTML = ""
|
customHeadHTML = ""
|
||||||
showPostsOnHomePage = "popular"
|
showPostsOnHomePage = "popular"
|
||||||
|
metaKeywords = ["blog", "gokarna", "hugo"]
|
||||||
|
|
||||||
[menu]
|
[menu]
|
||||||
[[menu.main]]
|
[[menu.main]]
|
||||||
|
|||||||
@@ -11,10 +11,14 @@
|
|||||||
{{ $title := .Title | default .Site.Title }}
|
{{ $title := .Title | default .Site.Title }}
|
||||||
{{ $description := .Description | default .Site.Params.Description }}
|
{{ $description := .Description | default .Site.Params.Description }}
|
||||||
{{ $image := .Params.image | default .Site.Params.AvatarURL }}
|
{{ $image := .Params.image | default .Site.Params.AvatarURL }}
|
||||||
|
{{ $siteKeywords := .Site.Params.MetaKeywords | default (slice) }}
|
||||||
|
{{ $postKeywords := .Params.tags | default (slice) }}
|
||||||
|
{{ $keywords := union $siteKeywords $postKeywords }}
|
||||||
|
|
||||||
<!-- SEO titles & descriptions -->
|
<!-- SEO titles & descriptions -->
|
||||||
<title>{{ $title }}</title>
|
<title>{{ $title }}</title>
|
||||||
<meta name="description" content="{{ $description }}">
|
<meta name="description" content="{{ $description }}">
|
||||||
|
<meta name="keywords" content='{{ delimit $keywords ", "}}'>
|
||||||
|
|
||||||
<meta property="og:url" content="{{ .Permalink }}">
|
<meta property="og:url" content="{{ .Permalink }}">
|
||||||
<meta property="og:type" content="website">
|
<meta property="og:type" content="website">
|
||||||
|
|||||||
Reference in New Issue
Block a user