Closed sandiegoan closed 4 years ago
Hello @sandiegoan Thank you for trying out this theme and I am sorry you ran into this problem. I am also thankful to you for reporting this as an issue on github.
I tried the following steps:
hugo new site test
cd test/themes
git clone https://github.com/balaramadurai/hugo-travelify-theme
cd ..
cp -r themes/hugo-travelify-theme/exampleSite/* .
hugo server
Now, I point my browser to http://localhost:1313.
It seemed to work fine. I can't replicate your error.
But, my guess is that there may be something wrong in your config.toml file.
In the config.toml file, the value of date_format should have double quotes before and after the value
like so,
date_format = "02 January, 2006"
Check this out for various date formats - https://gohugo.io/functions/format/#hugo-date-and-time-templating-reference
Thanks and please do let me know how this works out for you.
Bala
Hello, I've cloned this theme and copied the default site into my content folder. When trying to render the site the following error displays:
ERROR 2020/06/22 22:43:20 render of "page" failed: execute of template failed: template: _default/single.html:12:10: executing "_default/single.html" at <partial "single_article" .>: error calling partial: execute of template failed: template: partials/single_article.html:12:9: executing "partials/single_article.html" at <partial "article_footer" .>: error calling partial: "/usr/local/bin/quickstart/themes/hugo-travelify-theme/layouts/partials/article_footer.html:19:105": execute of template failed: template: partials/article_footer.html:19:105: executing "partials/article_footer.html" at <$date_format>: invalid value; expected string
I searched through the solved issues but couldn't find any similar postings. Thank you very much!