Hugothemes: Themes with no demo generated

Created on 4 Jan 2019  路  14Comments  路  Source: gohugoio/hugoThemes

This is a new list of broken theme demos on the Hugo website that I will address by notifying theme authors in the coming week and update this issue accordingly:


Strange Case ERROR log:

Error building site: failed to render pages: render of "page" failed: "/opt/build/repo/strange-case/layouts/_default/single.html:16:80": execute of template failed: template: _default/single.html:16:80: executing "_default/single.html" at <.Site.Params.datefor...>: invalid value; expected string

Notes
I opened https://discourse.gohugo.io/t/why-did-the-strange-case-theme-break-in-hugo-0-53/16201 because I cannot figure out what is causing this demo to fail in Hugo 0.53

Also this theme looks unmaintained. I very much doubt that I will get a response as there are unresolved issues that should have been addressed a long time ago. See: https://github.com/ExchangeRate-API/strange-case/issues


Dimension ERROR log:

Error: "exampleSite2/config.toml:10:1": unmarshal failed: Near line 10 (last key parsed 'params.description'): strings cannot contain newlines

Notes
This demo is affected by the same bug behaviour of the TOML parser that affected the Academic Theme (see below).

Turns out that someone notified the theme author about the problem with the multi line description in exampleSite/config.toml a long time ago but nothing was done.

See: https://github.com/sethmacleod/dimension/issues/29


FIXED Clean White ERROR log:

2:01:05 PM:  ==== PROCESSING  hugo-theme-cleanwhite  ======
2:01:05 PM: Building site for theme hugo-theme-cleanwhite using its own exampleSite to ../themeSite/static/theme/hugo-theme-cleanwhite/
2:01:06 PM: Error: "/opt/build/repo/hugo-theme-cleanwhite/layouts/_default/single.html:23:1": parse failed: template: _default/single.html:23: unclosed action
2:01:06 PM: FAILED to create exampleSite for hugo-theme-cleanwhite

FIXED Nuo ERROR log:

2:00:38 PM:  ==== PROCESSING  hugo-nuo  ======
2:00:38 PM: Building site for theme hugo-nuo using its own exampleSite to ../themeSite/static/theme/hugo-nuo/
2:00:38 PM: ERROR 2019/01/05 12:00:38 render of "page" failed: execute of template failed: template: _default/resume.html:15:5: executing "_default/resume.html" at <partial "head.html" ...>: error calling partial: "/opt/build/repo/hugo-nuo/layouts/partials/head.html:12:24": execute of template failed: template: partials/head.html:12:24: executing "partials/head.html" at <resources.Get>: error calling Get: stat /opt/build/repo/hugo-nuo/assets/images/avatar.jpg: no such file or directory
2:00:38 PM: ERROR 2019/01/05 12:00:38 render of "page" failed: execute of template failed: template: post/single.html:15:5: executing "post/single.html" at <partial "head.html" ...>: error calling partial: "/opt/build/repo/hugo-nuo/layouts/partials/head.html:12:24": execute of template failed: template: partials/head.html:12:24: executing "partials/head.html" at <resources.Get>: error calling Get: stat /opt/build/repo/hugo-nuo/assets/images/avatar.jpg: no such file or directory
2:00:38 PM: ERROR 2019/01/05 12:00:38 render of "page" failed: execute of template failed: template: post/single.html:15:5: executing "post/single.html" at <partial "head.html" ...>: error calling partial: "/opt/build/repo/hugo-nuo/layouts/partials/head.html:12:24": execute of template failed: template: partials/head.html:12:24: executing "partials/head.html" at <resources.Get>: error calling Get: stat /opt/build/repo/hugo-nuo/assets/images/avatar.jpg: no such file or directory
2:00:38 PM: ERROR 2019/01/05 12:00:38 render of "page" failed: execute of template failed: template: post/single.html:15:5: executing "post/single.html" at <partial "head.html" ...>: error calling partial: "/opt/build/repo/hugo-nuo/layouts/partials/head.html:12:24": execute of template failed: template: partials/head.html:12:24: executing "partials/head.html" at <resources.Get>: error calling Get: stat /opt/build/repo/hugo-nuo/assets/images/avatar.jpg: no such file or directory
2:00:39 PM: Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/links.html:15:5: executing "_default/links.html" at <partial "head.html" ...>: error calling partial: "/opt/build/repo/hugo-nuo/layouts/partials/head.html:12:24": execute of template failed: template: partials/head.html:12:24: executing "partials/head.html" at <resources.Get>: error calling Get: stat /opt/build/repo/hugo-nuo/assets/images/avatar.jpg: no such file or directory
2:00:39 PM: FAILED to create exampleSite for hugo-nuo

Hugo UI ERROR log:

2:01:17 PM:  ==== PROCESSING  hugo-now-ui  ======
2:01:17 PM: Building site for theme hugo-now-ui using its own exampleSite to ../themeSite/static/theme/hugo-now-ui/
2:01:17 PM: ERROR 2019/01/05 12:01:17 error: failed to transform resource: TOCSS: failed to transform "sass/now-ui-kit.scss" (text/x-scss): this feature is not available in your current Hugo version
2:01:17 PM: Error: Error building site: logged 1 error(s)
2:01:17 PM: FAILED to create exampleSite for hugo-now-ui

FIXED Academic ERROR log:

panic: BUG: Expected valid escape code after \, but got 'W'.

Notes
This is an upstream bug (see: https://github.com/BurntSushi/toml/issues/237) and also it has been reported at: https://github.com/gohugoio/hugo/issues/5584 https://github.com/gcushen/hugo-academic/issues/852 and the forum.

Turns out that this is not quite a bug. See: https://github.com/sethmacleod/dimension/issues/29

However the workaround described here: https://github.com/gcushen/hugo-academic/issues/852#issuecomment-449944802 is needed in the Academic Theme's Example Site.

Ok. The Academic Theme's author has already issued the workaround in the Example Site config (see: https://github.com/gcushen/hugo-academic/commit/afcf657f9348931faf9b9719ded1dfa75928c9f8)

@digitalcraftsman It seems that the demo of the Academic Theme will once again be generated when the Themes are updated in the repository.


I opened a separate issue for Evie

Most helpful comment

All 14 comments

@digitalcraftsman It seems that the demo of the Academic Theme will once again be generated when the Themes are updated in the repository.

I've updated the themes in https://github.com/gohugoio/hugoThemes/commit/34a3786211fa0531506c439ead83119ca35b78f1

@digitalcraftsman thank you very much for getting the Academic demo back online :) I had been receiving a number of reports from users eagerly awaiting its return.

Thanks for your great work @onedrawingperday

I have updated hugo-nuo theme to fix the problem.

@digitalcraftsman Three more themes have been fixed and their demos will be once again generated the next time that you update the themes in the repository.

I don't really expect responses from the authors of the Strange Case and Dimension themes since these themes haven't been updated in a long time, but I will leave the issues in the respective repos open just in case I get a reply.

However if I don't get a reply in the next 30 days, then I will be sending a few Pull Requests 鈽狅笍

I don't really expect responses from the authors of the Strange Case and Dimension themes since these themes haven't been updated in a long time, but I will leave the issues in the respective repos open just in case I get a reply.

Really sorry for the lack of maintenance, I stopped using github for a while. Busy fixing the outstanding issues now. Will also update the theme from Bootstrap 3 to 4 when I get a chance. Please let me know if there's anything else you'd like me to update.

@bimmer44 Again thank you for the fixes. I have closed the issue https://github.com/ExchangeRate-API/strange-case/issues/9 in your theme's repo.

Since #547 was merged the following themes do not have their demos generated.

I will look into it once I get back:

11:41:18 PM: ==== PROCESSING strange-case ======
11:41:18 PM: Error: Error building site: failed to render pages: render of "page" failed: "/opt/build/repo/strange-case/layouts/_default/single.html:16:80": execute of template failed: template: _default/single.html:16:80: executing "_default/single.html" at <.Site.Params.datefor...>: invalid value; expected string
11:41:18 PM: FAILED to create demo site for strange-case
11:41:14 PM:  ==== PROCESSING  hugo-mdl  ======
11:41:14 PM: Building site for theme hugo-mdl using its own exampleSite to ../themeSite/static/theme/hugo-mdl/
11:41:14 PM: ERROR 2019/01/28 21:41:14 in .Render: Failed to execute template "post/listitem.html": "/opt/build/repo/hugo-mdl/layouts/post/listitem.html:4:44": execute of template failed: template: post/listitem.html:4:44: executing "post/listitem.html" at <.Params.author.image>: can't evaluate field image in type interface {}
11:41:14 PM: ERROR 2019/01/28 21:41:14 in .Render: Failed to execute template "post/card-8.html": "/opt/build/repo/hugo-mdl/layouts/post/card-8.html:10:40": execute of template failed: template: post/card-8.html:10:40: executing "post/card-8.html" at <.Params.author.image>: can't evaluate field image in type interface {}
11:41:14 PM: Error: Error building site: failed to render pages: render of "page" failed: "/opt/build/repo/hugo-mdl/layouts/post/single.html:8:40": execute of template failed: template: post/single.html:8:40: executing "post/single.html" at <.Params.author.image>: can't evaluate field image in type interface {}
11:41:14 PM: FAILED to create exampleSite for hugo-mdl
11:41:17 PM:  ==== PROCESSING  hugo-resume  ======
11:41:17 PM: Building site for theme hugo-resume using its own exampleSite to ../themeSite/static/theme/hugo-resume/
11:41:17 PM: WARNING: calling IsSet with unsupported type "string" (string) will always return false.
11:41:17 PM: Error: Error building site: failed to render pages: render of "section" failed: "/opt/build/repo/hugo-resume/layouts/_default/section.html:8:11": execute of template failed: template: _default/section.html:8:11: executing "main" at <partial (printf "%s%...>: error calling partial: Partial "postSummary" not found
11:41:17 PM: FAILED to create exampleSite for hugo-resume
11:41:21 PM:  ==== PROCESSING  hugo-hero-theme  ======
11:41:21 PM: Building site for theme hugo-hero-theme using its own exampleSite to ../themeSite/static/theme/hugo-hero-theme/
11:41:21 PM: Error: Error building site: failed to render pages: render of "home" failed: "/opt/build/repo/hugo-hero-theme/layouts/index.html:23:30": execute of template failed: template: index.html:23:30: executing "main" at <$headless.Resources....>: can't evaluate field Resources in type *hugolib.Page
11:41:21 PM: FAILED to create exampleSite for hugo-hero-theme
11:41:45 PM:  ==== PROCESSING  timer-hugo  ======
11:41:45 PM: Building site for theme timer-hugo using its own exampleSite to ../themeSite/static/theme/timer-hugo/
11:41:45 PM: ERROR 2019/01/28 21:41:45 render of "page" failed: "/opt/build/repo/timer-hugo/layouts/_default/single.html:12:31": execute of template failed: template: _default/single.html:12:31: executing "_default/single.html" at <delimit .Params.tags...>: error calling delimit: can't iterate over <nil>
11:41:45 PM: ERROR 2019/01/28 21:41:45 render of "page" failed: "/opt/build/repo/timer-hugo/layouts/_default/single.html:12:31": execute of template failed: template: _default/single.html:12:31: executing "_default/single.html" at <delimit .Params.tags...>: error calling delimit: can't iterate over <nil>
11:41:45 PM: Error: Error building site: failed to render pages: render of "page" failed: "/opt/build/repo/timer-hugo/layouts/_default/single.html:12:31": execute of template failed: template: _default/single.html:12:31: executing "_default/single.html" at <delimit .Params.tags...>: error calling delimit: can't iterate over <nil>
11:41:45 PM: FAILED to create exampleSite for timer-hugo
11:41:50 PM:  ==== PROCESSING  AllinOne  ======
11:41:50 PM: Building site for theme AllinOne using its own exampleSite to ../themeSite/static/theme/AllinOne/
11:41:50 PM: WARN 2019/01/28 21:41:50 Data for key 'series' in path 'AllinOne/series.toml' is overridden by higher precedence data already in the data tree
11:41:50 PM: ERROR 2019/01/28 21:41:50 render of "page" failed: execute of template failed: template: _default/single.html:10:9: executing "header" at <partial "site-navbar...>: error calling partial: "/opt/build/repo/AllinOne/layouts/partials/site-navbar.html:30:48": execute of template failed: template: partials/site-navbar.html:30:48: executing "partials/site-navbar.html" at <substr .URL 1 -1>: error calling substr: start position out of bounds for 0-byte string
11:41:50 PM: ERROR 2019/01/28 21:41:50 render of "page" failed: execute of template failed: template: _default/single.html:10:9: executing "header" at <partial "site-navbar...>: error calling partial: "/opt/build/repo/AllinOne/layouts/partials/site-navbar.html:30:48": execute of template failed: template: partials/site-navbar.html:30:48: executing "partials/site-navbar.html" at <substr .URL 1 -1>: error calling substr: start position out of bounds for 0-byte string
11:41:50 PM: ERROR 2019/01/28 21:41:50 render of "taxonomyTerm" failed: execute of template failed: template: _default/terms.html:10:9: executing "header" at <partial "site-navbar...>: error calling partial: "/opt/build/repo/AllinOne/layouts/partials/site-navbar.html:30:48": execute of template failed: template: partials/site-navbar.html:30:48: executing "partials/site-navbar.html" at <substr .URL 1 -1>: error calling substr: start position out of bounds for 0-byte string
11:41:50 PM: ERROR 2019/01/28 21:41:50 render of "page" failed: execute of template failed: template: _default/single.html:10:9: executing "header" at <partial "site-navbar...>: error calling partial: "/opt/build/repo/AllinOne/layouts/partials/site-navbar.html:30:48": execute of template failed: template: partials/site-navbar.html:30:48: executing "partials/site-navbar.html" at <substr .URL 1 -1>: error calling substr: start position out of bounds for 0-byte string
11:41:50 PM: Error: Error building site: failed to render pages: render of "page" failed: execute of template failed: template: _default/single.html:10:9: executing "header" at <partial "site-navbar...>: error calling partial: "/opt/build/repo/AllinOne/layouts/partials/site-navbar.html:30:48": execute of template failed: template: partials/site-navbar.html:30:48: executing "partials/site-navbar.html" at <substr .URL 1 -1>: error calling substr: start position out of bounds for 0-byte string
11:41:50 PM: FAILED to create exampleSite for AllinOne
11:42:00 PM: ==== PROCESSING minimal-academic ======
11:42:00 PM: ERROR 2019/01/28 21:42:00 render of "page" failed: execute of template failed: template: _default/single.html:4:3: executing "_default/single.html" at <partial "page.html" ...>: error calling partial: execute of template failed: template: partials/page.html:7:7: executing "partials/page.html" at <partial "post.html" ...>: error calling partial: "/opt/build/repo/minimal-academic/layouts/partials/post.html:20:18": execute of template failed: template: partials/post.html:6:9: executing "partials/post.html" at <partial "post_metada...>: error calling partial: "/opt/build/repo/minimal-academic/layouts/partials/post_metadata.html:20:18": execute of template failed: template: partials/post_metadata.html:20:18: executing "partials/post_metadata.html" at <$.Site.GetPage>: error calling GetPage: too many arguments to .Site.GetPage: [taxonomyTerm categories Development]. Use lookups on the form {{ .Site.GetPage "/posts/mypage-md" }}
11:42:01 PM: FAILED to create exampleSite for minimal-academic

Looks like there is still the same error with my theme. I've now updated it again - this time doing the dateformat like this: {{ .Date.Format "Jan 2, 2006" }} rather than with a param.

This appears to work in other themes without broken demo sites so hopefully this will resolve it.

@bimmer44

I am away on a trip. I went out of my way to send #547 for security reasons and I am glad it was merged so soon.

I will be looking into providing fixes for the various broken demos (including yours) after I come back, around the 15th of February.

Also this theme's demo fails for reasons unrelated to the recent changes in the Build Script:

6:19:14 PM:  ==== PROCESSING  hugo-hero-theme  ======
6:19:14 PM: Building site for theme hugo-hero-theme using its own exampleSite to ../themeSite/static/theme/hugo-hero-theme/
6:19:14 PM: Error: Error building site: failed to render pages: render of "home" failed: "/opt/build/repo/hugo-hero-theme/layouts/index.html:23:30": execute of template failed: template: index.html:23:30: executing "main" at <$headless.Resources....>: can't evaluate field Resources in type *hugolib.Page
6:19:14 PM: FAILED to create exampleSite for hugo-hero-theme

More themes with no demo due to missing content directory see:

https://github.com/themefisher/infinity-hugo/issues/2

https://github.com/dgraph-io/hugo-dgraph-theme/issues/7

@digitalcraftsman I admit that I am a bit perplexed by the missing content directory for these themes. These themes don't use Multilingual in their config. It seems that the contentDir is not inherited from the HugoBasicExample.

Will investigate at a later date. I figured it out see: https://github.com/gohugoio/hugoThemes/pull/576

@bimmer44

Your theme's demo works fine at: https://themes.gohugo.io/theme/strange-case/

I am closing this issue as it's quite long. I will open another one about theme demos that do not generate after the refactoring of the HugoBasicExample is completed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

spech66 picture spech66  路  5Comments

luizdepra picture luizdepra  路  4Comments

DirtyF picture DirtyF  路  7Comments

kskarthik picture kskarthik  路  7Comments

serg picture serg  路  4Comments