1st question.
I have a JSON file with some words and their definitions. I put them in a data folder and I want to display them in my posts whenever I want to. Currently I have called the data through:
{{ range .Site.Data.terminology }}
{{.name}} - {{.definition}}
<br>
<br>
{{end}}
But this just puts the words and their definitions in every post I make. I want to go into my .md file and say “ok I want these words displayed” instead of having them on all websites. How do I do this?
2nd question.
Also is there a way to control how many are display at a time?
{{ range first 5 .Site.Data.terminology }}
I was thinking about something like this. Except instead of the first 5 I want to pick a couple of the words from the terminology.json file.
3rd question-ish
I don’t understand what a Param is and how they are used. If I have to use these in pulling my words from the json file how do I do that and what does it exactly do?