Cem Kaan
Cem Kaan

Reputation: 2236

Is it possible to use "sort of dynamic" pages using hugo?

I need sort of "dynamic" pages generated during build

/id/1
/id/2
/id/3
/id/4

How to create a dynamic route?

content/
--| id/
-----| _id.html
--| index.html

Upvotes: 3

Views: 500

Answers (1)

Mr. Hugo
Mr. Hugo

Reputation: 12590

This looks like the request to generate pages based on a data file. This is a long awaited (missing) feature in Hugo, see https://github.com/gohugoio/hugo/issues/5074. It has been an issue for almost 10 years now (see https://github.com/gohugoio/hugo/issues/140#issuecomment-67767381).

Not a strange request and you are clearly not alone. But unfortunately the answer is 'no'. You should use one of the workarounds in the github discussions. Waiting on this has become pointless.

Upvotes: 1

Related Questions