I’m new to Hugo and Hugo Templates.
I’m trying to learn how to make templates in hugo for NetlifyCMS.
I’ve set up NetlifyCMS to create some md files with data in the frontmatter. If I visit the url which I expect my template to load on, I get a different template.
Is there an easy way to find which template is currently being used? By showing the template name or location in the frontend somehow? How do people generally debug routing / template problems?
I looked at your repo. I’ve no experience with Netlify but I could see your site with hugo server. Good, that you’re working with Tachyons.
If you want to see which template is used just make a temporary remark in all templates like <h1>This is template gallery.html</>. If you want to dedicate a specific template to a page you can use Front Matter. I described this in my post My experiences with Hugo's template lookup order in the different layout variants.