Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/allnightgrocery/hugo-theme-blueberry-detox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew R. Jenkins <allnightgrocery@gmail.com>2016-08-29 03:43:30 +0300
committerAndrew R. Jenkins <allnightgrocery@gmail.com>2016-08-29 03:43:30 +0300
commit306607f7db90d41513131a6b713e0e41ed1331a6 (patch)
treed1a5622cd1f95568ed184efd0239db116f7c166d
parentb56f0e23827959e53f58f3819061a15da00df204 (diff)
Resolves #7. Adding an array of keywords under Params will automatically create the keywords meta tag with values.
-rw-r--r--layouts/partials/meta.html4
1 files changed, 3 insertions, 1 deletions
diff --git a/layouts/partials/meta.html b/layouts/partials/meta.html
index f311720..feee0e7 100644
--- a/layouts/partials/meta.html
+++ b/layouts/partials/meta.html
@@ -6,7 +6,9 @@
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="author" content="{{ .Site.Params.author }}">
- <meta name="keywords" content="awesome, definitely">
+ {{ with .Site.Params.keywords }}
+ <meta name="keywords" content="{{ range $index, $element := $.Site.Params.keywords }}{{ if gt $index 0 }}, {{ end }}{{ . | safeHTML }}{{ else }}{{ . | safeHTML }}{{ end }}">
+ {{ end }}
{{ with .Site.Params.twitter_name }}
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@https://twitter.com/{{ . }}">