diff --git a/exampleSite/config.toml b/exampleSite/config.toml index ddf30d7..54be3d7 100644 --- a/exampleSite/config.toml +++ b/exampleSite/config.toml @@ -17,6 +17,7 @@ pygmentsStyle = "monokai" avatarSize = "size-m" customHeadHTML = "" showPostsOnHomePage = "popular" + metaKeywords = ["blog", "gokarna", "hugo"] [menu] [[menu.main]] diff --git a/themes/gokarna/layouts/partials/head.html b/themes/gokarna/layouts/partials/head.html index 6ee4370..1471b27 100644 --- a/themes/gokarna/layouts/partials/head.html +++ b/themes/gokarna/layouts/partials/head.html @@ -11,10 +11,14 @@ {{ $title := .Title | default .Site.Title }} {{ $description := .Description | default .Site.Params.Description }} {{ $image := .Params.image | default .Site.Params.AvatarURL }} + {{ $siteKeywords := .Site.Params.MetaKeywords | default (slice) }} + {{ $postKeywords := .Params.tags | default (slice) }} + {{ $keywords := union $siteKeywords $postKeywords }} {{ $title }} +