I have been using https://www.netlify.com/blog/2016/09/21/a-step-by-step-guide-victor-hugo-on-netlify/ to create my site.
And I reached on ‘Setting up your first theme.’ the part without any issue. I deleted unwanted files and copiedconfig.toml
from hugo-strata-theme/exampleSite/
(In the tutorial it’s saying that config is in the root of the theme - may be old code?) to my config.toml
. And I updated index.html
with theme index.html
(again from exampleSite/
folder) but I am getting an empty <body data-gr-c-s-loaded="true" > </body>
. I have been looking on this for some time. Any idea? I am a newbie on Hugo.
Log:
> victor-hugo@1.0.0 start /home/affine/Development/portfolio
> gulp server
[11:02:04] Requiring external module babel-register
[11:02:08] Using gulpfile ~/Development/portfolio/gulpfile.babel.js
[11:02:08] Starting 'hugo'...
[11:02:08] Starting 'css'...
INFO: 2017/07/07 11:02:08 hugo.go:436: Using config file: /home/affine/Development/portfolio/site/config.toml
INFO: 2017/07/07 11:02:08 hugo.go:543: using a UnionFS for static directory comprised of:
INFO: 2017/07/07 11:02:08 hugo.go:544: Base: /home/affine/Development/portfolio/site/themes/hugo-strata-theme/static
INFO: 2017/07/07 11:02:08 hugo.go:545: Overlay: /home/affine/Development/portfolio/site/static/
INFO: 2017/07/07 11:02:08 hugo.go:577: syncing static files to /home/affine/Development/portfolio/dist/
0 of 2 drafts rendered
0 future content
0 pages created
0 non-page files copied
0 paginator pages created
0 tags created
0 categories created
in 23 ms
[11:02:09] Starting 'js'...
[11:02:09] Finished 'hugo' after 704 ms
[11:02:09] Finished 'css' after 706 ms
[11:02:09] [webpack] Hash: 9ed7bfd9bde7e1bdbf38
Version: webpack 2.6.1
Time: 405ms
Asset Size Chunks Chunk Names
app.js 2.82 kB 0 [emitted] app
chunk {0} app.js (app) 73 bytes [entry] [rendered]
[0] ./src/js/app.js 45 bytes {0} [built]
[1] multi ./js/app 28 bytes {0} [built]
[11:02:09] Finished 'js' after 515 ms
[11:02:09] Starting 'server'...
[11:02:09] Finished 'server' after 59 ms
[BS] Access URLs:
-------------------------------------
Local: http://localhost:3000
External: http://172.16.0.128:3000
-------------------------------------
UI: http://localhost:3001
UI External: http://172.16.0.128:3001
-------------------------------------
[BS] Serving files from: ./dist
Then I changed drafts to false
to render it, then ran again, but the same result with the same log.
I think the tutorial used old hugo and theme was old. But I don’t know much about this.