paulmartins / hugo-digital-garden-theme

Hugo Theme for digital gardening projects.
MIT License
89 stars 43 forks source link

A problem with deploying in Netlify #14

Closed stardoom4 closed 1 year ago

stardoom4 commented 1 year ago

I deployed a fork of this theme in Netlify but in the site nothing was there it was Empty only 2023 was visible in the bottom and menu button with theme changing button was visible. How can I fix it. Deploy can be found here

paulmartins commented 1 year ago

Please take a look at point 3. in the README. It says you should customise your site in config.toml, with a link to an example. If you just fork and deploy that will not work, you'd still need to manually setup your config.toml with your info.
Let me know if this fixes your issue so I can close this issue.

stardoom4 commented 1 year ago

I changed the config.toml but the deploy is still the same. Here is the deploy

paulmartins commented 1 year ago

Could you paste the link to your config.toml ?
As I assume your deploy is done from the main branch I cannot see the file updates you mentioned. Is this the one: https://github.com/stardoom4/hugo-digital-garden-theme/blob/main/config.toml ?

stardoom4 commented 1 year ago

Like this Config.toml Do I have to put it in examplesite directory.

paulmartins commented 1 year ago

That looks better.

You should not put it in exampleSite directory. This folder is just an example you can browse to see how it works. It corresponds to the demo site if I remember well.

You should only update the folders on the root of the repo. You also probably want to create a content/ folder in the root of the repo where you can organise your articles (using a similar structure as in exampleSite)

stardoom4 commented 1 year ago

I am getting this error at deployment

4:18:23 PM: Error: module hugo-digital-garden-theme not found; either add it as a Hugo Module or store it in /opt/build/repo/themes.: module does not exist

paulmartins commented 1 year ago

It looks like the theme was not installed (ie the theme should be inside the themes/ directory or your website.

Just to be clear, the repo is a theme for a hugo website. It is not a website, so it should be installed as a theme to an existing site.

Please follow the instructions in the README to first quickstart a hugo website, and then install the theme.

stardoom4 commented 1 year ago

Okay , now I get my mistake. Thanks for the Help.