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

Write hugo command line documentation for serving site locally #2

Open
annakrystalli opened this issue Sep 23, 2020 · 8 comments
Open

Comments

@annakrystalli
Copy link
Collaborator

Start with Hugo Getting started docs

@annakrystalli
Copy link
Collaborator Author

annakrystalli commented Sep 29, 2020

  • Install Go

  • Install Hugo

  • Make copy of template

  • Edit config.toml

  • Build static pages hugo -D

  • Serve site locally hugo server -D

@davidwilby
Copy link
Collaborator

For installing hugo on debian/ubuntu easiest way is:
sudo apt-get install hugo

@davidwilby
Copy link
Collaborator

Can confirm works with:
Hugo version: Hugo Static Site Generator v0.75.1/extended darwin/amd64 BuildDate: unknown
Go version: go version go1.15.2 darwin/amd64
on MacOS 10.14.1 Mojave

@bobturneruk
Copy link
Collaborator

bobturneruk commented Sep 29, 2020

Can confirm works with:
Hugo Static Site Generator v0.75.1-A4A7BAB7 windows/amd64 BuildDate: 2020-09-15T06:48:58Z
go version go1.15.2 windows/amd64
On Windows 10

Installed hugo via chocolatey.

@annakrystalli
Copy link
Collaborator Author

annakrystalli commented Sep 29, 2020

If having problems with themes and missing modules/shortcodes run hugo mod clean

@drj11
Copy link

drj11 commented Sep 29, 2020

For me on Ubuntu 16.04:

  • pre-existing go installation: 1.13.4 (probably 1.11 or more recent);
  • installed hugo from source via github using their instructions (it is extremely large for a go project and this step takes a while. It is compiling go, be patient);
  • if you install hugo from source (the step above), remember that the hugo binary will be in ~/go/bin which may not be on your PATH;
  • this ends up with Hugo Static Site Generator v0.76.0-DEV/extended linux/amd64 BuildDate: unknown
  • ran hugo -D followed by hugo server -D

@davidwilby
Copy link
Collaborator

Got this to work on Ubuntu 18.04 with:

  • binary installation (64 bit linux)
  • hugo version Hugo Static Site Generator v0.75.1-A4A7BAB7/extended linux/amd64 BuildDate: 2020-09-15T06:57:20Z
  • Go version go1.15.2 linux/amd64 (new installation)
  • slides working

I also encountered difficulties when installing with snap, which seems to end up with the wrong path for go.

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

No branches or pull requests

4 participants