How Can I display itens from config.toml separate per html tags not per comma?
for example:
config.toml
[params]
skills = "x,y,z"
index
like this:
- x
- y
- z
not:
Tks
How Can I display itens from config.toml separate per html tags not per comma?
for example:
config.toml
[params]
skills = "x,y,z"
index
like this:
not:
Tks
Try the following:
<ul>
{{ range .Site.Params.skills }}
<li>{{ . }}</li>
{{ end }}
</ul>
You need to make it an array:
skills = ["x","y","z"]
And then do
{{ range .Params.skills }}
{ { . }}
{{ end }}
In the template.