I have two json files under data
folder, i.e. data/education.json
and data/experience.json
. In template how would I get only one data file to use, the documentation says to use the filename without an extension like:
{{ range .Site.Data.education }}
{{ .title }}
{{ end }}
but this doesn’t work but using
{{ range $.Site.Data }}
{{ . }}
{{ end }}
prints out both the file together, another alternative is to create folders and move these into their respective ones, i.e. data/education/education.json
and data/experience/experience.json
.
Can it be done without creating an extra folder?