eadas
eadas

Reputation: 21

Making front matter parameter text bold in hugo

I was wondering if there's a way to make some phrases bold on my markdown file parameters (TOML). I'm using one of the parameters to render a text description on a page, it loads perfectly but visually I need to highlight parts of the text to make it easier to read.

I need it to be something like this:

---
 title: "page title"
 description: "Lorem ipsum dolor sit amet, **consectetur adipiscing** elit, sed do eiusmod."
 date: ""
--- 

So it can be rendered:

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod.

Obviously that's not gonna work... I've never needed this before, but for what I know, any text contained by "" is just rendered as plain text, so no markdown syntax works here.

Does anyone knows if there's a way to achieve this?

Upvotes: 2

Views: 1627

Answers (1)

Sparsh
Sparsh

Reputation: 1498

Hugo supports three formats for front matter, each with their own identifying tokens.

TOML identified by opening and closing +++

YAML identified by opening and closing ---

JSON a single JSON object surrounded by ‘{’ and ‘}’, followed by a new line.

Either you must edit your tokens first, try again Or edit your question. :)

Upvotes: 0

Related Questions