Closed sbuvaneshkumar closed 3 years ago
I am getting the same error. @sbuvaneshkumar did you find a solution or workaround for this?
@connor11528 Unfortunately no, still I don't find any workaround or solution.
Hi @sbuvaneshkumar @connor11528 I think that you must specify at least a main menu entry in config.toml. For example:
[[menu.main]] name = "about" identifier = "about" weight = 200 url = "/about/"
Okay thank you @pferretti
I added this and am getting an error on the command line. For all my files in content/posts/ directory I have the date saved like: date: "2017-11-26"
any ideas what more I need to improve?
$ hugo server -D
Building sites … WARN 2020/01/12 18:11:09 Page.RSSLink is deprecated and will be removed in a future release. Use the Output Format's link, e.g. something like:
{{ with .OutputFormats.Get "RSS" }}{{ .RelPermalink }}{{ end }}
ERROR 2020/01/12 18:11:09 render of "section" failed: "/Users/connorleech/Projects/connorleech.info/themes/hugo-goa/layouts/_default/list.html:7:55": execute of template failed: template: _default/list.html:3:3: executing "_default/list.html" at <partial "li.html" .>: error calling partial: "/Users/connorleech/Projects/connorleech.info/themes/hugo-goa/layouts/partials/li.html:7:55": execute of template failed: template: partials/li.html:7:55: executing "partials/li.html" at <.Site.Params.dateformat>: invalid value; expected string
ERROR 2020/01/12 18:11:09 render of "page" failed: "/Users/connorleech/Projects/connorleech.info/themes/hugo-goa/layouts/_default/single.html:8:67": execute of template failed: template: _default/single.html:3:3: executing "_default/single.html" at <partial "content.html" .>: error calling partial: "/Users/connorleech/Projects/connorleech.info/themes/hugo-goa/layouts/partials/content.html:8:67": execute of template failed: template: partials/content.html:8:67: executing "partials/content.html" at <.Site.Params.dateformat>: invalid value; expected string
ERROR 2020/01/12 18:11:09 render of "page" failed: "/Users/connorleech/Projects/connorleech.info/themes/hugo-goa/layouts/_default/single.html:8:67": execute of template failed: template: _default/single.html:3:3: executing "_default/single.html" at <partial "content.html" .>: error calling partial: "/Users/connorleech/Projects/connorleech.info/themes/hugo-goa/layouts/partials/content.html:8:67": execute of template failed: template: partials/content.html:8:67: executing "partials/content.html" at <.Site.Params.dateformat>: invalid value; expected string
ERROR 2020/01/12 18:11:09 render of "page" failed: "/Users/connorleech/Projects/connorleech.info/themes/hugo-goa/layouts/_default/single.html:8:67": execute of template failed: template: _default/single.html:3:3: executing "_default/single.html" at <partial "content.html" .>: error calling partial: "/Users/connorleech/Projects/connorleech.info/themes/hugo-goa/layouts/partials/content.html:8:67": execute of template failed: template: partials/content.html:8:67: executing "partials/content.html" at <.Site.Params.dateformat>: invalid value; expected string
Built in 74 ms
Error: Error building site: failed to render pages: render of "page" failed: "/Users/connorleech/Projects/connorleech.info/themes/hugo-goa/layouts/_default/single.html:8:67": execute of template failed: template: _default/single.html:3:3: executing "_default/single.html" at <partial "content.html" .>: error calling partial: "/Users/connorleech/Projects/connorleech.info/themes/hugo-goa/layouts/partials/content.html:8:67": execute of template failed: template: partials/content.html:8:67: executing "partials/content.html" at <.Site.Params.dateformat>: invalid value; expected string
Okay nvm, I think I was just missing some configuration options. I added the config and everything is working now. I believe this issue can be closed out
Based config from the exampleSite (doh)
## Basic Configuration
baseurl = "https://shenoybr.github.io/hugo-goa-demo/"
builddrafts = false
canonifyurls = false
languageCode = "en-US"
contentdir = "content"
layoutdir = "layouts"
publishdir = "public"
author = "Erlich Bachman"
title = "Erlich Bachman"
theme = "hugo-goa"
## Hugo Built-in Features
disqusShortname = "https-shenoybr-github-io-hugo-goa-demo" # Comment out to disable Disqus.
googleAnalytics = "XYZ"
enableRobotsTXT = true
## Site Settings
[params]
author = "Erlich Bachman"
intro = "Startup Guru Extraordinaire"
description = "Now @Pied Piper. Previously @Hacker Hostel, @Bachmanity and @Aviato. <br/> \"What is F times 5? It's Fleventy-five.\""
authorimage = "headshot.jpg"
dateformat = "Jan 2, 2006"
## Site Meta Settings
[params.meta]
description = "Simple minimalist theme"
keywords = "minimalist,blog,goa,hugo,developer"
## Social Accounts
[params.social]
github = "<username>"
instagram = "<username>"
xing = "<username>"
linkedin = "<username>"
twitter = "<username>"
facebook = "<username>"
google = "<username>"
googlescholar = "<account_id>"
stackoverflow = "<username>"
lastfm = "<username>"
goodreads = "<username>"
gitlab = "<username>"
bitbucket = "<username>"
fivehundredpx = "<username>"
flickr = "<username>"
foursquare = "<username>"
hackernews = "<username>"
kickstarter = "<username>"
patreon = "<username>"
pintrest = "<username>"
steam = "<username>"
reddit = "<username>"
snapchat = "<username>"
youtube = "<channelid>"
keybase = "<username>"
twitch = "<username>"
soundcloud = "<username>"
tumblr = "<username>"
strava = "<username>"
skype = "<username>"
telegram = "<username>"
whatsapp = "<username>"
email = "you@example.com"
pgp = "<key_fingerprint>"
## Extras
[params.extra]
copyright = "© 2016. Erlich Bachman. [Some Rights Reserved](http://creativecommons.org/licenses/by/3.0/)."
poweredby = true
highlightjs = true
socialmarkup = true
toc = true
displayrssicon = true
## Main Menu
[[menu.main]]
name = "blog"
weight = 100
identifier = "blog"
url = "/blog/"
[[menu.main]]
name = "about"
identifier = "about"
weight = 200
url = "/about/"
[[menu.main]]
name = "coderag"
identifier = "coderag"
weight = 300
url = "/coderag/"
Hi, I am still unable to get solution of this. Can anyone please help me out??
Yeah me too, above solutions didn't work.
@Ayush23Dash @mubashirjamali101 I had this exact issue and it was in the config.toml.
In the theme 'Blonde', there's an exampleSite. I started copying and pasting the exampleSite files into mine, and finally when I got to config.toml the hugo server
started running.
Try and find an exampleSite folder in your theme, or download one that does.
I had the same issue, here is how I solved it:
Step 1: Open config.yaml in your website project in RStudio
Step 2:
Go to the last line in that script in RStudio and type in this (see below) and save it:
security: funcs: getenv:
I had the same issue, here is how I solved it:
Step 1: Open config.yaml in your website project in RStudio
Step 2:
Go to the last line in that script in RStudio and type in this (see below) and save it:
security: funcs: getenv: - ^HUGO - ^WC
don't know why but it really works!
I have the same problem with an existing site which worked before. Very frustrating. Will there ever be a proper fix?
@krischik Can you create a new issue detailing the problem you're facing with steps to reproduce or code / repo that I can use to investigate your problem?
After adding theme, I am getting following error. I have tried with brand new site, without any content, facing the same issue.