Hello,
I’ve noticed that my single and double quotes are rendered differently when I’m writing content in markdown. In Org format, both the apostrophes and double quotes looked fine, but after switching to markdown, they appear slightly tilted, almost like they’re in italics, even though I haven’t changed any font settings like size or type.
… you will need to generate a style sheet (using the hugo gen chromastyles command). If set to true (the default), syntax highlighted code blocks will use inline style attributes.
Sorry for posting this here. I have one last question, and I don’t want to open a new thread for it, even though that would have been more appropriate. I’ve noticed that some front matters use YAML syntax while others use TOML. Is this just a matter of preference? Can I use either one I want for posts? For example, I prefer the YAML format for all posts, but I left hugo.toml in TOML. However, I think the two can work together until I eventually switch the Hugo configuration to YAML at some point.
TOML has a date data type; YAML and JSON do not. The data type is irrelevant for the four predefined front matter date fields (date, publishDate, expiryDate, lastmod)… Hugo casts those fields to time.Time values.
But for custom date fields (under the params key), quoted date values are strings. But with TOML, if you omit the quotes, it is unmarshaled to a date/time value. That makes date comparisons easier, in particular when using a where clause.
Front matter example:
+++
title = 'Post 1'
date = 2024-10-26T12:23:13-07:00
draft = false
[params]
eventDate = 2024-10-31T16:30:00-07:00
+++