I’m trying to create a meta-keywords in my template. I was thinking that if there are no keywords in the front matter of the page, it will fallback on the keywords parameter defined in config.toml.
There is something odd going on here. I can’t get it to work either with or without the Params prefix. Keywords is one of the blessed words so the .Params prefex shouldn’t be necessary.
If I create a value called metakeys and then use the code I gave with .Params.metakeys everything works perfectly. If I use any of the blessed words either than Keywords it also works perfectly.
---
draft : false
title : "CV"
description : "Erfarenheter och meriter för Joachim Wallsin. Här listas utbildningar, arbetslivserfarenheter och övriga meriter."
keywords : "kungsbacka, göteborg, golfklubb"
date : 2014-12-10T01:33:41Z
menu:
main:
weight: 10
---
Just rendering {{.Keywords}} gives an ampty []. So maybe I’m using keywords wrong. It shouldn’t be a string, but an array?