Sample Project or Site #30
-
Is there a sample site or project for this theme? I am new to hugo and when I go back and forth from the hugo documentation and the paige documentation I can't find anything. For example my layouts directory on my site is empty. Where are the page partials such as links.html? I am trying to follow along and simply change the favicon.svg and basically all my directories are empty. I can modify the hugo.toml file but I am not sure where to go from there. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 7 replies
-
See https://github.com/willfaught/paige/tree/master/exampleSite. exampleSite is a special directory in Hugo modules/themes for putting a full Hugo site that uses the module/theme. It's what's deployed to the demo website. |
Beta Was this translation helpful? Give feedback.
-
I am sorry to keep asking questions. Why does the site configuration happen in the config.yaml file in the example site, while it happens in the hugo.toml in my site? Should I have both? |
Beta Was this translation helpful? Give feedback.
It's no problem.
Hugo recently changed the default config file name to hugo.yaml, but it still checks for the old name, config.yaml. You should only have one. I renamed the config.yaml file in the repo root, but I didn't rename the config.yaml in exampleSite. I just pushed a new version, v0.64.0, that makes both names consistent.
See https://gohugo.io/getting-started/configuration/#hugotoml-vs-configtoml.