Hugo Params Always Turn Empty

I have this on my Hugo config.yaml →

paginate: 6
paginatePath: /
summaryLength: 30

permalinks:
  blog: /:title/
  poem: /:title/
  quote: /:title/

markup:
  goldmark:
    renderer:
      unsafe: true

params:
  menu1: blog
  menu2: poem
  menu3: quote

It works fine when I build with Netlify →

But problem show when I build with Cloudflare Pages because the params always turn empty like this →

I use Hugo 0.100.0 version. Any solution?

In your Pages project, did you set a HUGO_VERSION environment variable? If not, under Settings → Environment Variables, set it to the version of Hugo that you’re using.

3 Likes

Thanks. It works.

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