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] #439

Open
cdblind opened this issue May 6, 2023 · 3 comments
Open

[Docs] #439

cdblind opened this issue May 6, 2023 · 3 comments
Labels
documentation Changes to theme docs

Comments

@cdblind
Copy link

cdblind commented May 6, 2023

Describe the change

Hi
I tried installing the Clarity theme for Hugo using the PowerShell install command you provided and it appear to download the bot does not seem to extract the files. I am on Windows using vscode, and I am left file 4000 KB file with no extension. I am assuming the command downloads the repository extracts the files folders and delete the downloaded archive file. I am not that familiar with tar so I am not sure what is not working. Any help would be appreciated.

@cdblind cdblind added the documentation Changes to theme docs label May 6, 2023
@Tekki
Copy link
Contributor

Tekki commented May 6, 2023

What works in PowerShell is:

Invoke-WebRequest -Uri https://codeload.github.com/chipzoller/hugo-clarity/zip/master -OutFile hugo-clarity.zip
Expand-Archive hugo-clarity.zip
Copy-Item -Recurse .\hugo-clarity\hugo-clarity-master\exampleSite\* .
Remove-Item -Recurse -Force hugo-clarity
Remove-Item hugo-clarity.zip
Remove-Item -Force config.toml

I'm not a PowerShell specialist, so I hope someone comes up with a better solution.

@cdblind
Copy link
Author

cdblind commented May 6, 2023

Thanks
Much appreciated. Sorry for my poor typing had a few brews when I typed it.

The commands in the readme

wget -O - https://github.com/chipzoller/hugo-clarity/archive/master.tar.gz \ 
| tar xz -and cp -a hugo-clarity-master/exampleSite/* . -and rm -rf hugo-clarity-master -and rm -f config.toml

The tar option did not work for me, so I used zip and it worked.

Thanks

@cdblind cdblind closed this as completed May 6, 2023
@cdblind
Copy link
Author

cdblind commented May 6, 2023

Should I leave this open as I am not sure if there is an issue with the tar options in the readme file, or whether it is user error.

@cdblind cdblind reopened this May 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Changes to theme docs
Projects
None yet
Development

No branches or pull requests

2 participants