Error: command error: failed to load config: "..../xxx.github.io/hugo.toml:4:9": unmarshal failed: toml: incomplete number

TOML file shows incomplete number error despite passing TOML validator test

I am trying to build a website using the pehtheme-hugo theme. I followed all instructions to clone all files, however, hugo server prompts this error: Error: command error: failed to load config: "/Users/xxx/xxx.github.io/hugo.toml:4:9": unmarshal failed: toml: incomplete number.

The hugo.toml file passed a TOML validator and looks OK. This is what the file looks like this:

baseURL = 'https://pehtheme-hugo.netlify.app/' languageCode = 'en-us' title = 'Pehtheme' theme = 'pehtheme-hugo' paginate = '6' # <- Set the desired number of posts per page summaryLength = '20' # <- 20 words are approximately 160 characters #googleAnalytics = 'G-MEASUREMENT_ID' # <- Your GA-4 disqusShortname = 'your-disqus-shortname' # <- Get form here : https://disqus.com [params] # Meta description, not exceeding 160 characters, used for the meta description within the HTML head description = 'Pehtheme Hugo Lite: A minimalist Hugo theme, built with TailwindCSS, for efficient performance and minimalism.' mainSections = 'posts' [author] name = 'Anthony Arphan' bio = 'Debitis assumenda esse dignissimos aperiam delectus maxime tenetur repudiandae dolore' avatar = '/images/nasa-astronaut-unsplash.jpg' twitter = 'https://twitter.com/insertapps' [menu] # Menu management [[menu.main]] name = 'Home' pageRef = '/' weight = 10 [[menu.main]] name = 'About' pageRef = '/about' weight = 15 [[menu.main]] name = 'Tags' pageRef = '/tags' weight = 20 [[menu.main]] name = 'Taxonomy' pageRef = '/tags/space/' weight = 25 [module] [module.hugoVersion] extended = false min = "0.116.0" [module.mounts] # Directing the static folder to assets. source = 'assets' target = 'static'

Please fix your post… it’s illegible.

When you post blocks of code on this forum, wrap them in triple backticks or use the </> button in the menu.

When I follow the theme author’s instructions, the installation works great provided that you build the site with v0.135.0 or earlier… the theme is not compatible with later versions.

hugo new site foo
cd foo
git init
git submodule add https://github.com/fauzanmy/pehtheme-hugo themes/pehtheme-hugo
cp -r themes/pehtheme-hugo/exampleSite/assets/ .
cp -r themes/pehtheme-hugo/exampleSite/content/ .
cp -r themes/pehtheme-hugo/exampleSite/hugo.toml .
hugo server
1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.