Auto-fill .Title with h1 value


I would like to easily move my notes to hugo theme, unfortunately hugo usually likes to use .Site.Title for rendering site’s title.

I have notes in format:

tags: [..]
# My Note

Notice that I don’t have title set.

I would like to know if it is possible to set somehow globally .Site.Param to the contents of h1 (# My Note). If it isn’t possible then what about collecting just h1 data?

No, this is not possible. This functionality has been requested and rejected a couple of times.

If you’re doing a one-time import of many pages, I’d write a script to convert the pages from one format to another.

Thats a shame :frowning: Thank you

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