Content not displaying when hosting on Netlify


#1

I just create a new Hugo website and host it on Netlify. The codebase is here Everything seems ok, but the content is not displaying.


#2

the link You share is not found


#3

Fixed


#4

not fixed :slight_smile:


#5

Your content has draft=true. So, to tell Hugo you want draft content processed, you need to set:

hugo -D

on Netlify’s build settings.


#6

Another way to do what @sjardim mentioned is to edit the command in your netlify.toml file like this

[build]
publish = "public"
command = "hugo -D"

Or, depending on what you want, you could just set your content front matter to draft: false


#7

Thank you guys :smiley: Issue solved.