I need to create single template based on the name parameter fetced from url

So I created list.html template and fetched data from the URL. Now I need a single page about each product fetched. I listed them all like this
<li><a class="dropdown-item" href="{{ printf "/pricing/%s" .Name }}">{{ .Name }}</a></li>
How can I now create single template with the Name parameter in the URL?

It sounds like you are trying to create pages from data. If so, this might be useful:

https://www.thenewdynamic.com/article/toward-using-a-headless-cms-with-hugo-part-2-building-from-remote-api/

cc @regis

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.