mrvautin / squido

A dead simple static HTML website builder which can be hosted anywhere for super fast websites and very little effort
https://squido.markmoffat.com/
MIT License
64 stars 6 forks source link

Body without title #8

Closed bmlyon closed 2 years ago

bmlyon commented 2 years ago

When I use the {{{body}}} tag, it includes the title. Is there a way to get the body without including the title?

My alternate workaround would be to switch from using {{meta.title}} to something else like {{meta.pageTitle}}. The problem is that I can't omit the title: frontmatter without causing the error Failed to get related posts TypeError: Cannot read property 'length' of null. If I leave title blank via two quote marks and nothing in-between them, then the h1 tag still prints but it's empty. I also tried a value of undefined but it assumed that was a string instead of undefined.

bmlyon commented 2 years ago

My bad I figured it out, I was looking at the wrong template file (index instead of post).

For anyone else who runs into this: