i want to create an archetype to create sites for customers by an archetype. I also want to fill this Customersites with data.
So i created an archetype in which i load a partial HTML file, named archetypes/customers.md:
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
---
{{ range $.Site.Data.customers }}
{{ partial "customersite.html" . }}
{{ end }}
With this i would load all *.yaml files in /data/customers.
How can i load contents of an specific .yaml?
This *.yaml has the same name as the *.md file, which i create with hugo new customers/example.md (in this case i would like to load the /data/customers/example.yaml file)