The Hugo command don't build all the site

Hi,

I upload manually my website on Netlify.

I have the site, the navigation but not the content.

I change the baseurl in my config file with the netlify address.

https://stupendous-bavarois-947462.netlify.app/categories/

It’s like there’s no theme, no layout ?

In local with “Hugo server” command i get

                   | EN
-------------------+-----
  Pages            | 35
  Paginator pages  |  5
  Non-page files   | 12
  Static files     |  0
  Processed images | 38
  Aliases          |  8
  Sitemaps         |  1
  Cleaned          |  0

With “Hugo” command for create public folder I get

                   | EN
-------------------+-----
  Pages            | 13
  Paginator pages  |  0
  Non-page files   |  0
  Static files     |  0
  Processed images |  0
  Aliases          |  2
  Sitemaps         |  1
  Cleaned          |  0

Miss images, some pages…

Does someone have an idea ?

thanks in advance

Could you explain couple things.

How you uploaded manually on Netlify. Netlify shall build your site from the source.

On the link I see theme/layout so not sure what is not working?

Could you share link you your repository.

Thank’s @idarek

On Netlify you have 2 ways for build your website :

1 - From github
2 - From your Public folder. You can upload it.

image

So you just need to use the “Hugo” command for generating your Public folder and upload it.

As you can see above, the command did not generate the whole site.

But I found a solution by adding this flags.

hugo --watch --verbose

I get all pages

                   | EN
-------------------+-----
  Pages            | 35
  Paginator pages  |  5
  Non-page files   | 12
  Static files     |  0
  Processed images | 24
  Aliases          |  8
  Sitemaps         |  1
  Cleaned          |  0

Now the website is complete and deploy in test.

1 Like

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