joeroe / risotto

A minimalist, responsive hugo theme inspired by terminal ricing aesthetics.
https://risotto.joeroe.io
MIT License
436 stars 113 forks source link

Update config filename #65

Closed Vinfall closed 9 months ago

Vinfall commented 9 months ago

I noticed https://github.com/gohugoio/hugo/pull/10621 when updating risotto today, you would probably want to update this. I did not touch exampleSite/config.toml in case you still use that in risotto demo and simply renaming would break it somehow.

Also, I wrote a Development section for quick setup of development site but did not commit as I'm not sure if you want that. Anyway I'll leave it below:

# Clone repo
hugo new site test && cd test/
# New config file still conflict with theme config
# https://github.com/gohugoio/hugo/pull/10621
rm hugo.toml
git clone https://github.com/joeroe/risotto themes/risotto
# Replicate exampleSite
cp -r themes/risotto/exampleSite/* ./
cp -r themes/risotto/layouts/* layouts/
# Fix symlink path
cd content && ln -sf ../themes/risotto/README.md _index.md && cd ../
# Start server
hugo server --disableFastRender --buildDrafts
joeroe commented 9 months ago

Thanks for this.

As for the development section, it's a good idea. I usually work within the repo and preview changes with:

cd exampleSite && hugo serve --themesDir ../..

Which has the benefit of not requiring copying or moving any files around.

Vinfall commented 9 months ago

Wow, good to know that!