Log in Sign up

Use the first X characters of a post as title?

I have a fairly large number of posts that are imported from other services and have no titles. My first idea to handle this was to use a custom tag and then show "untitled post" for these posts.

Unfortunately, it looks really silly on the archive page when there are several "untitled" posts in a row. My second idea to get the first X chars from the post and use that as the title, but is it possible to get the first X chars in some way?

And before anyone suggest using the name of the file, my posts are stored in folders with images and are all called "index.md" which means that I get an archive full of "index" which looks even more silly that "untitled post" 😁


3 months ago, 3 replies   how   metadata   title   Edit question

The title generator should eventually fall back to using the first sentence of a post – this sounds like it's not happening on your site – would you be willing to share a link to it here or over email so I can look at the specifics?

Answered 2 years ago · Edit answer

We resolved this over email – the title generator was using the file name

Answered 2 years ago · Edit answer

So I'm currently just experimenting with Blot again, as I try to figure out my best path forward, and in my test upload of Markdown files, if I have one with no title set in the front matter, Blot is using the filename in post lists, not the first sentence of the post. Am I missing some aspect of getting it to use the first sentence? Thanks.

Answered 3 months ago · Edit answer