I want to range through some social links and display them sitewide which have the same variables (name, URL, weight). Up to now, after reading the docs, I am seeing three ways:
- Create the links as a menu in
Use cascade (it works in the root
_index.md of the content section)
- Create a data file in the data folder.
Of course there is also the option to hard code the links. Other than that, is there a recommended way to do this?
I am familiar with number 3 having used Jekyll for a while. But Hugo appears more flexible in this case with more options.
I also ‘come from’ Jekyll.
I have seen your comments in their forum. I think number 3 looks good coz I have more use cases for data files.
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.