Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOCS: Missing chdir command in Setup Section to be copy and play capable #247

Closed
irkode opened this issue Nov 1, 2024 · 0 comments · Fixed by #250
Closed

DOCS: Missing chdir command in Setup Section to be copy and play capable #247

irkode opened this issue Nov 1, 2024 · 0 comments · Fixed by #250

Comments

@irkode
Copy link
Contributor

irkode commented Nov 1, 2024

Following the Startup section in README.md I found the following problems

1. missing chdir command (module setup)

That won't work cause we are not in the new site folder. to copy and play the code we should add the chdir commend (it's present in the submodule variant)

Using the theme as Hugo module

First create a new Hugo site by running the following command:

hugo new site myblog

Initialize your new Hugo site as hugo module by running the following command:

cd myblog                               #MISSING
hugo mod init github.com/USER/REPO

2. missing chdir command (submodule setup)

Although it's said that we have to be in the exampleSite folder I would add the chdircommand here, to enable_copy and play_

  1. Using the theme as Git submodule

...
To preview the theme with example content, run the following command from the exampleSite directory:

cd themes/hugo-blog-awesome/example-site    # MISSING
hugo server --themesDir ../..

just filed the PR

@irkode irkode changed the title missing chdir command in Setup Section to be copy and play capable DOCS: Missing chdir command in Setup Section to be copy and play capable Nov 1, 2024
irkode added a commit to irkode/hugo-blog-awesome that referenced this issue Nov 1, 2024
irkode added a commit to irkode/hugo-blog-awesome that referenced this issue Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant