apvarun / showfolio-hugo-theme

Modern portfolio theme for your Hugo site
https://showfolio.vercel.app/
MIT License
102 stars 41 forks source link

Wrong rendering on CloudFlare pages #19

Closed fdicarlo closed 1 year ago

fdicarlo commented 1 year ago

Hi Varun,

I am working on my personal website and I would love to use showfolio.

For the time being I am using CF pages to deploy the website, unfortunately it seems not working properly, in the rendering, I used this command here: npm i && hugo -D --gc as suggested but the results are still not great, you can see by yourself here https://23abff57.fdicarlo.pages.dev/, is it possible to point me out to which is the issue (I think on the npm) and a possible fix?

apvarun commented 1 year ago

Hi @fdicarlo I can see that you've set the baseurl in config.toml file to https://fdicarlo.com/. And because of this, when Hugo generates the site, it hardcodes the CSS path to begin with this URL, which is not active.

You can change it to https://fdicarlo.pages.dev/and test if the site loads as expected

fdicarlo commented 1 year ago

Hi,

Thank you for your response, I changed in the repo, but no success:

2022-11-22T12:11:48.816585Z Cloning repository...
2022-11-22T12:11:50.570356Z From https://github.com/fdicarlo/fdicarlo-hugo
2022-11-22T12:11:50.570983Z  * branch            f5c1dceb1c87e96d1853e7ccf911c09616ef472c -> FETCH_HEAD
2022-11-22T12:11:50.571161Z 
2022-11-22T12:11:51.755878Z HEAD is now at f5c1dce Update config.toml
2022-11-22T12:11:51.756485Z 
2022-11-22T12:11:53.736022Z Submodule 'themes/showfolio' (https://github.com/apvarun/showfolio-hugo-theme.git) registered for path 'themes/showfolio'
2022-11-22T12:11:53.73668Z  Submodule 'themes/terminal' (https://github.com/panr/hugo-theme-terminal.git) registered for path 'themes/terminal'
2022-11-22T12:11:53.737153Z Cloning into '/opt/buildhome/clone/themes/showfolio'...
2022-11-22T12:11:53.737356Z Cloning into '/opt/buildhome/clone/themes/terminal'...
2022-11-22T12:11:53.737481Z Submodule path 'themes/showfolio': checked out '85fb1499a17ec44c20a5395db2075882ef154c29'
2022-11-22T12:11:53.737597Z Submodule path 'themes/terminal': checked out '5b9dff342a22d41bd32d21fd6929548c0ca7cc3c'
2022-11-22T12:11:53.73772Z  
2022-11-22T12:11:53.7739Z   Success: Finished cloning repository files
2022-11-22T12:11:54.41237Z  Installing dependencies
2022-11-22T12:11:54.426279Z Python version set to 2.7
2022-11-22T12:11:57.944474Z v12.18.0 is already installed.
2022-11-22T12:11:59.16925Z  Now using node v12.18.0 (npm v6.14.4)
2022-11-22T12:11:59.41763Z  Started restoring cached build plugins
2022-11-22T12:11:59.434172Z Finished restoring cached build plugins
2022-11-22T12:11:59.959532Z Attempting ruby version 2.7.1, read from environment
2022-11-22T12:12:03.759326Z Using ruby version 2.7.1
2022-11-22T12:12:04.130325Z Using PHP version 5.6
2022-11-22T12:12:04.301093Z 5.2 is already installed.
2022-11-22T12:12:04.329309Z Using Swift version 5.2
2022-11-22T12:12:04.330118Z Started restoring cached node modules
2022-11-22T12:12:04.641933Z Finished restoring cached node modules
2022-11-22T12:12:04.890256Z Installing NPM modules using NPM version 6.14.4
2022-11-22T12:12:05.861833Z npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
2022-11-22T12:12:09.283747Z npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
2022-11-22T12:12:09.284062Z npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2022-11-22T12:12:09.284328Z 
2022-11-22T12:12:09.285908Z added 169 packages from 153 contributors and audited 171 packages in 3.463s
2022-11-22T12:12:09.346495Z 
2022-11-22T12:12:09.34685Z  29 packages are looking for funding
2022-11-22T12:12:09.34702Z    run `npm fund` for details
2022-11-22T12:12:09.347238Z 
2022-11-22T12:12:09.347381Z found 0 vulnerabilities
2022-11-22T12:12:09.347499Z 
2022-11-22T12:12:09.367934Z NPM modules installed
2022-11-22T12:12:09.792834Z Installing Hugo 0.101.0
2022-11-22T12:12:10.935627Z hugo v0.101.0-466fa43c16709b4483689930a4f9ac8add5c9f66+extended linux/amd64 BuildDate=2022-06-16T07:09:16Z VendorInfo=gohugoio
2022-11-22T12:12:10.941305Z Started restoring cached go cache
2022-11-22T12:12:10.963539Z Finished restoring cached go cache
2022-11-22T12:12:11.121931Z go version go1.14.4 linux/amd64
2022-11-22T12:12:11.137656Z go version go1.14.4 linux/amd64
2022-11-22T12:12:11.141191Z Installing missing commands
2022-11-22T12:12:11.141472Z Verify run directory
2022-11-22T12:12:11.141623Z Executing user command: npm i && hugo -D --gc
2022-11-22T12:12:12.672606Z npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
2022-11-22T12:12:12.672957Z npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2022-11-22T12:12:12.673167Z 
2022-11-22T12:12:12.675654Z audited 171 packages in 0.867s
2022-11-22T12:12:12.736456Z 
2022-11-22T12:12:12.73684Z  29 packages are looking for funding
2022-11-22T12:12:12.737015Z   run `npm fund` for details
2022-11-22T12:12:12.737142Z 
2022-11-22T12:12:12.737263Z found 0 vulnerabilities
2022-11-22T12:12:12.737381Z 
2022-11-22T12:12:12.822233Z Start building sites … 
2022-11-22T12:12:12.822656Z hugo v0.101.0-466fa43c16709b4483689930a4f9ac8add5c9f66+extended linux/amd64 BuildDate=2022-06-16T07:09:16Z VendorInfo=gohugoio
2022-11-22T12:12:18.487829Z 
2022-11-22T12:12:18.488151Z                    | EN  
2022-11-22T12:12:18.488298Z -------------------+-----
2022-11-22T12:12:18.488416Z   Pages            | 10  
2022-11-22T12:12:18.488528Z   Paginator pages  |  0  
2022-11-22T12:12:18.488668Z   Non-page files   |  0  
2022-11-22T12:12:18.488791Z   Static files     | 15  
2022-11-22T12:12:18.489102Z   Processed images |  0  
2022-11-22T12:12:18.489288Z   Aliases          |  0  
2022-11-22T12:12:18.489422Z   Sitemaps         |  1  
2022-11-22T12:12:18.489542Z   Cleaned          |  0  
2022-11-22T12:12:18.489669Z 
2022-11-22T12:12:18.489804Z Total in 5689 ms
2022-11-22T12:12:18.497927Z Finished
2022-11-22T12:12:18.498541Z Note: No functions dir at /functions found. Skipping.
2022-11-22T12:12:18.498762Z Validating asset output directory
2022-11-22T12:12:19.077571Z Deploying your site to Cloudflare's global network...
2022-11-22T12:12:21.224437Z  Uploading... (16/27)
2022-11-22T12:12:21.225214Z 
2022-11-22T12:12:21.849844Z  Uploading... (19/27)
2022-11-22T12:12:21.850213Z 
2022-11-22T12:12:21.92878Z   Uploading... (23/27)
2022-11-22T12:12:21.929154Z 
2022-11-22T12:12:22.333461Z  Uploading... (27/27)
2022-11-22T12:12:22.33386Z  
2022-11-22T12:12:22.336669Z ✨ Success! Uploaded 11 files (16 already uploaded) (1.72 sec)
2022-11-22T12:12:22.337004Z 
2022-11-22T12:12:23.012864Z ✨ Upload complete!
2022-11-22T12:12:24.500656Z Success: Assets published!
2022-11-22T12:12:25.067244Z Success: Your site was deployed!
apvarun commented 1 year ago

Loads fine now I think (checked fdicarlo.pages.dev). Am I missing something?

fdicarlo commented 1 year ago

Loads fine now I think (checked fdicarlo.pages.dev). Am I missing something?

my bad, I was checking the single deployment rather than the link :) thank you for your help, I definitely learn a new thing