I’m new here and having trouble adding a cover image to my first post.
The code is:
+++
title = ‘First’
date = 2024-03-19T18:14:09-03:00
draft = false
cover = {
image = “img\cover.jpg”
}
+++
The problem returned is: Error: error building site: process: readAndProcessContent: “C:\Hugo\beeasy2\content\posts\first.md:5:10”: unmarshal failed: toml: invalid character at start of key:
If I remove the following code, it works, so the problem is with the cover.
cover = {
image = “img\cover.jpg”
}
It works now! Thank you for the help. I initially hesitated to change the +++ to --- and : to = because running hugo new posts/first.md originally created my file with the +++ and : symbols.