kishaningithub / hugo-creative-portfolio-theme

Port of the creative portfolio theme to Hugo
https://themes.gohugo.io/hugo-creative-portfolio-theme/
MIT License
447 stars 292 forks source link

Issues with deployment #94

Open advasan opened 3 years ago

advasan commented 3 years ago

Has anyone successfully deployed this site? Having issues with it following the instructions provided. Also tried Netlify but get a 404 error there as well.

PythonCoderUnicorn commented 2 years ago

Has anyone successfully deployed this site? Having issues with it following the instructions provided. Also tried Netlify but get a 404 error there as well.

I have tried to deploy to Netlify as well but keep getting error 404 page not found.

i use blogdown:::serve_site() for it to run locally, no problem there.

On Netlify my settings are

# Build settings
Base Directory: Not set
Build command: Hugo
Publish directory: public
Deploy log visibility: Logs are public
Builds: Active

# Branches
Production branch: main
Branch deploys: Deploy only the production branch

# Environment variables
HUGO_VERSION  *******

FIX: in the config.yml change the baseurl baseurl: <YOUR_WEBSITE-NAME.netlify.app>

simon-scmp commented 11 months ago

Also having real problems even deploying to internal Apache2 server. All style sheets gone. manually changing path from /css to ../css in the /posts/index.html file kind of works and gets it looking somewhat like the dev server but appears there will be lots of manual editing to make it work. I just Do NoT understand in many Hugo builds I've done with various themes; they all work fine on the localhost:1313 server and look brilliant as soon as you create the file to publish it all falls apart. Just wish could grab that working copy in the dev server and use that. It's not in this case the baseurl issue either.

simon-scmp commented 11 months ago

having just spent the last hour + manually editing every html file on the site it looks like most of the paths to things like css files and other pages need to be referenced one or two directories up so it made css/xxxx it should be ../../css/xxx so annoying.

kishaningithub commented 11 months ago

@simon-scmp Happy to review a PR! ☺️