Skip to content
This repository has been archived by the owner on Jul 5, 2021. It is now read-only.

Demo link is not seen in Creative portfolio theme #238

Closed
kishaningithub opened this issue Apr 10, 2017 · 4 comments
Closed

Demo link is not seen in Creative portfolio theme #238

kishaningithub opened this issue Apr 10, 2017 · 4 comments

Comments

@kishaningithub
Copy link

Any idea on why the "Demo" button/link is gone for
creative portfolio theme?

http://themes.gohugo.io/hugo-creative-portfolio-theme/

screen shot 2017-04-10 at 7 30 50 am

@digitalcraftsman
Copy link
Member

Hello @kishaningithub,

I ran the build script for the theme site with the latest version of your theme and got the following error message:

ERROR 2017/04/11 20:23:21 Error while rendering "page": template: ***/hugoThemeSiteScript/hugoThemeSite/exampleSite/themes/hugo-creative-portfolio-theme/layouts/_default/single.html:8:17: executing "***/hugoThemeSiteScript/hugoThemeSite/exampleSite/themes/hugo-creative-portfolio-theme/layouts/_default/single.html" at <partial "sidebar.htm...>: error calling partial: template: theme/partials/sidebar.html:13:7: executing "theme/partials/sidebar.html" at <partial "socialButto...>: error calling partial: Partial "socialButtonsInSideBar.html" not found

You referenced the the partials corrently by their name. After some fiddling I found out that Hugo doesn't seem to like partial calls with camelCased names. You can leave the partial filenames as their are. Within the templates you have to change mobileNavToggle.html to mobilenavtoggle.html, socialButtonsInContact.html to socialbuttonsincontact and socialButtonsInSideBar.html to socialbuttonsinsidebar.html.

But I'm not sure why Hugo is complaining about this.

@digitalcraftsman
Copy link
Member

digitalcraftsman commented Apr 12, 2017

@kishaningithub you aren't the only one with the problem. Have a look at this forum thread or at the corresponding issue gohugoio/hugo#3333

@digitalcraftsman
Copy link
Member

This bug has been fixed with Hugo v0.21. But we've to update the Hugo version that is used to build the theme.

@digitalcraftsman
Copy link
Member

Now the demo works again.

Cheers,
Digitalcraftsman

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants