I’m getting the same response to my config.toml - and unclear on syntax.
Thanks,
gvhconnect
I’m getting the same response to my config.toml - and unclear on syntax.
Thanks,
gvhconnect
Please post your config.toml file.
googleAnalytics
baseurl = “https://petes70th.com” # Your domain name
languageCode = “en-us”
defaultContentLanguage = “en”
isMultilingual = false
title = “Call me Pete”
theme = “sam”
[params]
dateform = “Mon Jan 02, 2006”
dateformfull = “Mon Jan 2 2006 15:04:05 EST”
favicon = “sam.ico”
homepage = “main” # What to call the home page link, link will not be rendered if empty
footerText = “Call out Happy 70th Pete!”
description = "Happy 70th Peter T!" # Max 160 characters show in search results
images = ["tn.png"] # Image that shows on Twitter cards and Open Graph links to the site
title = "Call me Pete"
# rss = ""
[[params.videoBackground.sources]]
source = “/sample_video.mp4”
type = “video/mp4”
poster = “/background.png”
[params.videoBackground]
overlay = “rgba(0, 0, 0, 0.4)” # optional
[[params.mainMenu]]
link = “posts”
text = “posts”
[[params.mainMenu]]
link = “gallery”
text = “gallery”
[[params.mainMenu]]
link = “portfolio”
text = “portfolio”
[[params.mainMenu]]
link = “about”
text = “who is pete?”
[imaging]
quality = 75
© 2021 GitHub, Inc.
Terms
As posted, this TOML is fine. No parsing errors.
Requested config.toml
So, any suggestions on why the error when trying to run hugo server? I’m not familiar with the syntax.
Wait, please format your posting. Enclose the TOML in code fences (three backticks before and after). Example:
```
My code
```
baseurl = "https://petes70th.com" # Your domain name
languageCode = "en-us"
defaultContentLanguage = "en"
isMultilingual = false
title = "Call me Pete"
theme = "sam"
# googleAnalytics = "" # Tracking code, eg. "UA-111111111-1"
[params]
dateform = "Mon Jan 02, 2006"
dateformfull = "Mon Jan 2 2006 15:04:05 EST"
favicon = "sam.ico"
homepage = "main" # What to call the
home page link, link will not be rendered if empty
footerText = "Call out Happy 70th Pete!"
# Metadata for Open Graph and Twitter
description = "Happy 70th Peter T!" # Max 160 characters show in search$
images = ["tn.png"] # Image that shows on Twitter cards an$
title = "Call me Pete"
# rss = ""
[[params.videoBackground.sources]]
source = "/sample_video.mp4"
type = "video/mp4"
poster = "/background.png"
[params.videoBackground]
overlay = "rgba(0, 0, 0, 0.4)" # optional
[[params.mainMenu]]
link = "posts"
text = "posts"
[[params.mainMenu]]
link = "gallery"
text = "gallery"
[[params.mainMenu]]
link = "portfolio"
text = "portfolio"
[[params.mainMenu]]
link = "about"
text = "who is pete?"
[[menu.icon]]
url = "https://twitter.com/gvhtv/"
name = "fab fa-twitter"
weight = 3
[[menu.icon]]
url = "https://www.linkedin.com/in/georgehughes"
name = "fab fa-linkedin"
weight = 4
[imaging]
quality = 75
© 2021 GitHub, Inc.
Terms
Delete the last two lines
© 2021 GitHub, Inc.
Terms
And you have split a comment over two lines, beginning on line 13.
When Hugo encounters a parsing error, it tells you exactly where the problem is. For example:
Error: “/home/jmooring/code/hugo-testing/config.toml:14:10”: unmarshal failed: toml: expected character U+003D
This says that the problem occurred when parsing line 14.
Very nifty!
Thanks very much!
GVH
This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.