digitalcraftsman / hugo-strata-theme

Port of HTML5UP's Strata theme to Hugo
Other
143 stars 92 forks source link

Not compiling index.html #11

Closed dobbsbp closed 8 years ago

dobbsbp commented 8 years ago

I'm having trouble getting hugo to generate the main page, it seems to generate the posts but i'm just confused on what's going on.

I tried using the files from the example site and having hugo compile it but it did the same thing. What am I missing?

Here's my files: https://github.com/dobbsbp/strata

digitalcraftsman commented 8 years ago

Hello @dobbsbp,

I'm having trouble getting hugo to generate the main page, it seems to generate the posts but i'm just confused on what's going on.

I had a look at your linked repository and everything seemed fine. Could you describe further what doesn't work as expected? Are you using posts for a blog?

dobbsbp commented 8 years ago

Ah. In the config.toml i added params to include some photos of works of mine just like how the example site is. I'm not sure if i'm using posts of blogs now... all i've done is added entries into the config.toml file and not done anything like hugo new post/whatever.md.

i run hugo server -w and the site it sets up at localhost:1313 which shows up as a blank page. I've uploaded the results of running hugo to my website http://portfolio.bendobbs.com which is just a blank page as well. I've tried running the example site through hugo the same way and have the same problem.

digitalcraftsman commented 8 years ago

Which version of Hugo are you using? How does the log look like in your terminal after your start Hugo's built-in server?

dobbsbp commented 8 years ago

ben@alpa:~/gdrive/Sites/portfolio$ hugo version Hugo Static Site Generator v0.16-DEV BuildDate: 2016-02-07T00:14:17+07:00 ben@alpa:~/gdrive/Sites/portfolio$ hugo server -w 0 draft content 0 future content 0 pages created 0 non-page files copied 0 paginator pages created 0 tags created 0 categories created in 18 ms Watching for changes in /home/ben/gdrive/Sites/portfolio/{data,content,layouts,static,themes} Serving pages from memory Web Server is available at http://localhost:1313/ (bind address 127.0.0.1) Press Ctrl+C to stop

digitalcraftsman commented 8 years ago

Okay. I did a fresh clone of your repository. But the themes/hugo-strata-theme folder is empty. I had to clone manually so that Hugo can use the templates and assets to generate a website.

How does your local setup look like? I your themes/hugo-strata-theme empty too?

dobbsbp commented 8 years ago

Ah, i think empty folders are missing when uploading to github. So as it stands, archetypes, data, layouts, and content are empty.

However, themes/hugo-strata-theme is not empty and does contain the theme files.

Not sure if this is helpful. i copied the themes folder into the example site for strata and attempted to generate the example site. It generated 4 pages, all of which are the blog posts in the example site however its still missing the main page... when i run the server it comes up as a blank page still. heres the output:

ben@alpa:~/gdrive/Sites/portfolio/themes/hugo-strata-theme/exampleSite$ hugo 0 draft content 0 future content 4 pages created 0 non-page files copied 0 paginator pages created 0 tags created 2 categories created in 66 ms

Not sure if this helps or not.

digitalcraftsman commented 8 years ago

Okay, the behavior is a bit weird. Does it still happen if you follow this procedure?

$ hugo new site example
$ cd example/themes/
$ git clone https://github.com/digitalcraftsman/hugo-strata-theme
$ cd ..

Last but not least replace the default config file with your own and start the server with hugo server.

On my machine the homepage gets generated as expected (except that the pictures in portfolio are missing because we didn't copied them).

dobbsbp commented 8 years ago
ben@alpa:~$ hugo new site example
Congratulations! Your new Hugo site is created in "/home/ben/example".
ben@alpa:~$ cd example/themes/
ben@alpa:~/example/themes$ git clone https://github.com/digitalcraftsman/hugo-strata-theme
Cloning into 'hugo-strata-theme'...
remote: Counting objects: 302, done.
remote: Total 302 (delta 0), reused 0 (delta 0), pack-reused 302
Receiving objects: 100% (302/302), 3.55 MiB | 407.00 KiB/s, done.
Resolving deltas: 100% (148/148), done.
Checking connectivity... done.
ben@alpa:~/example/themes$ cd ..
ben@alpa:~/example$ hugo server
0 draft content
0 future content
0 pages created
0 non-page files copied
0 paginator pages created
0 tags created
0 categories created
in 18 ms
Watching for changes in /home/ben/example/{data,content,layouts,static,themes}
Serving pages from memory
Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
Press Ctrl+C to stop

Still no luck.

I did copy the config.toml file into the example folder before running hugo server. In web browswer I opened localhost:1313 and still, blank page. 127.0.0.1:1313 is the same.

digitalcraftsman commented 8 years ago

Now, I'm clueless. Would it be possible to create a thread in the Hugo forum. Maybe the friendly folks there have an better eye to spot the error.

dobbsbp commented 8 years ago

Will give that a shot. Thanks for all your help. If you like i can report back here when the issue is resolved. I love the theme, just wish i could use it. haha

AWebOfBrown commented 8 years ago

I had the same issue. I can get your 'Cactus' theme to work fine (can see the homepage), but not Strata.

rawkode commented 8 years ago

Same here. Strata theme isn't working out of the box. Other themes are fine

Hugo Static Site Generator v0.16-DEV BuildDate: 2016-02-06T17:14:17Z
digitalcraftsman commented 8 years ago

The good news is that @dobbsbp isn't the only one with this issue. The bad one is that I still don't know how to reproduce it.

Let's see if @AWebOfBrown and @rawkode can still reproduce it with a fresh demo setup. If you encounter problems please post the output of the CLI etc.

$ hugo version
Hugo Static Site Generator v0.17 BuildDate: 2016-10-11T17:46:26+02:00
$ cd  /tmp
$ hugo new site demo
Congratulations! Your new Hugo site is created in /tmp/demo.
...
$ cd demo/themes
$ git clone https://github.com/digitalcraftsman/hugo-strata-theme
...
$ cd ..
# Copy all files from exampleSite in root directory
$ cp -R  themes/hugo-strata-theme/exampleSite/. .
$ hugo server

Furthermore, you both could share your setup if possible. I wasn't able to reproduce the issue with @dobbsbp setup (as you can read a few comments above).

rawkode commented 8 years ago

Works fine with v0.17, but fails with v0.16. Upgraded and happy :+1:

digitalcraftsman commented 8 years ago

That's great news.

For the others: please upgrade your Hugo version if possible and report back if everything works now so we can close this issue ;)

digitalcraftsman commented 8 years ago

I'll close this issue since an upgrade to Hugo v0.17 seems to solve this mysterious issue. Feel free to reopen if you still encounter the described problems.