gurusabarish / hugo-profile

A highly customizable and mobile first Hugo template for personal portfolio and blog.

Home Page:https://hugo-profile.netlify.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Local static website not rendered as expected. (Netlify deploy and local build&serve work well)

shamiek opened this issue · comments

Describe the bug
Deployment on netlify and using hugo server (building and serving the site locally) work as expected. However, locally generating the static website to a public directory does not work as expected. There is no styling, no responsive clicks. There is just a plain html webpage when I open public/index.html

To Reproduce
Steps to reproduce the behavior:

  1. hugo new site my-site -f=yaml
  2. cd themes
  3. git clone https://github.com/gurusabarish/hugo-profile.git
  4. cd ..
  5. Copy config.yaml from here and create my-site/config.yaml
  6. hugo --destination public
  7. Open my-site/public/index.html in a browser (I tried firefox and chrome)

Expected behavior
You should see a website exactly as how hugo server serves at localhost:1313.

Screenshots
If applicable, add screenshots to help explain your problem.
sc1
sc2
sc3
sc4

Desktop (please complete the following information):

  • OS: Ubuntu 18.04 LTS
  • Browser: Firefox (111.0.1 (64-bit)), Chrome (Version 112.0.5615.49 (Official Build) (64-bit))

Additional context
Netifly deployment and local build and serve work perfectly fine.

Hey i also had this problem while deploying with GitHub actions.

Try this line in config.yaml, Just below where you set theme.

canonifyURLs: true

Hope this helps.

See this #69

Thanks a lot. Adding canonifyURLs: true worked.