Imagine your homepage looks like this:
Welcome to the Hugo Cookbook!
-----------------------------
recipes [see all] authors [see all]
----------------------- -----------------
1.) Hugo Chocolate Cake 1.) Julia Child
2.) Hugo Tiramisu 2.) Gordon Ramsay
The question at hand: Is there a way to generate the [see all]
link targets, or do you just hardcode /<section-name>/index.html
?
In other words, given only a string that you know that represents the name of a section ("recipes"
, "posts"
, "authors"
, etc.), how would you generate the URL that corresponds to that section’s list page?