Doesn't copy theme content at all when following getting starting guide. How is this meant to work?

Sorry, i’m a bit frustrated.

Just compiled 0.15 because the ARM binary doesn’t seem to work on the RPi 2 - that was the first frustration. Newly compiled binary seems to work except none of the theme content is placed within reach of the published content:

pi@raspberrypi:/mnt/hugo_site $ ls
archetypes config.toml content data layouts public static themes
pi@raspberrypi:/mnt/hugo_site $ ls themes/hyde
archetypes images layouts LICENSE.md README.md static theme.toml
pi@raspberrypi:/mnt/hugo_site $ hugo server --bind=0.0.0.0 --port=8080 --baseURL=192.168.0.20/ --theme=hyde --buildDrafts -v
INFO: 2016/01/31 16:18:20 hugo.go:393: Using config file: /mnt/hugo_site/config.toml
INFO: 2016/01/31 16:18:20 hugo.go:483: using a UnionFS for static directory comprised of:
INFO: 2016/01/31 16:18:20 hugo.go:484: Base: /mnt/hugo_site/themes/hyde/static
INFO: 2016/01/31 16:18:20 hugo.go:485: Overlay: /mnt/hugo_site/static/
INFO: 2016/01/31 16:18:20 hugo.go:517: syncing static files to /
INFO: 2016/01/31 16:18:20 site.go:1274: found taxonomies: map[string]string{“tag”:“tags”, “category”:“categories”}
1 of 1 draft rendered
0 future content
2 pages created
0 non-page files copied
0 paginator pages created
0 categories created
0 tags created
in 124 ms
Watching for changes in /mnt/hugo_site/{data,content,layouts,static,themes}
Serving pages from memory
Web Server is available at http://192.168.0.20:8080/ (bind address 0.0.0.0)
Press Ctrl+C to stop
^Z[1] Exit 2 hugo server --bind=0.0.0.0 --port=8080 --baseURL=192.168.0.20/ --theme=hyde --buildDrafts -v

[2]+ Stopped hugo server --bind=0.0.0.0 --port=8080 --baseURL=192.168.0.20/ --theme=hyde --buildDrafts -v
pi@raspberrypi:/mnt/hugo_site $ bg
[2]+ hugo server --bind=0.0.0.0 --port=8080 --baseURL=192.168.0.20/ --theme=hyde --buildDrafts -v &
pi@raspberrypi:/mnt/hugo_site $ ls public static
public:
404.html about index.html index.xml robots.txt sitemap.xml

static:
pi@raspberrypi:/mnt/hugo_site $

It’s annoying not just being able to follow the getting started guide to produce a working site :confused: Nothing is copied. Loading the page from the server it’s clear none of the theme files can be found. How is this meant to work? Surely they should be copied to public?

Thanks

The hugo server command serves pages from memory, so you won’t see them in the public/ path.

Try just hugo --theme=hyde --buildDrafts -v to tell hugo to create the files for you.

pi@raspberrypi:/mnt/hugo_site $ hugo --theme=hyde --buildDrafts -v
INFO: 2016/01/31 18:36:03 hugo.go:393: Using config file: /mnt/hugo_site/config.toml
INFO: 2016/01/31 18:36:03 hugo.go:483: using a UnionFS for static directory comprised of:
INFO: 2016/01/31 18:36:03 hugo.go:484: Base: /mnt/hugo_site/themes/hyde/static
INFO: 2016/01/31 18:36:03 hugo.go:485: Overlay: /mnt/hugo_site/static/
INFO: 2016/01/31 18:36:03 hugo.go:517: syncing static files to /mnt/hugo_site/public/
INFO: 2016/01/31 18:36:04 site.go:1274: found taxonomies: map[string]string{“tag”:“tags”, “category”:“categori
s”}
1 of 1 draft rendered
0 future content
2 pages created
0 non-page files copied
0 paginator pages created
0 tags created
0 categories created
in 1900 ms
pi@raspberrypi:/mnt/hugo_site $ ls public/
404.html about index.html index.xml post robots.txt sitemap.xml
pi@raspberrypi:/mnt/hugo_site $ ls static/

No luck :confused:

Sorry that you’re having problems. Could you put a copy of your site on Github and post the link here? It’ll make troubleshooting much easier.

Mike

@squimmy,
What are you expecting to see that you’re not seeing? Hugo generates the site into public, not static. static is copied into public on build. Based on what you’ve shown here, it looks like it’s working.