HermanMartinus / bearblog

Free, no-nonsense, super fast blogging.
MIT License
2.36k stars 73 forks source link

edited post template not applied #252

Closed deogracia closed 8 months ago

deogracia commented 8 months ago

HI, Just starting today using Bear. Thanks a lot ^^

I want to use the following post template

title: Mon post
link: mon-post
lang: fr
meta_description: If no meta description is set, it will default to the first 160 characters of the content of the post.
tags: posts,writing,2023

---
# Titre

Once updated, the new post doesn't use it at all. image

I can't find what I did wrong :'( It does the same even when I just use Title: My post only.

HermanMartinus commented 8 months ago

Hey, so it looks like you're using dashes, where you should be using underscores to separate the post attributes and the content :) ___ vs ---

It's super subtle and I should emphasise this somewhere.

deogracia commented 8 months ago

Damened!

it really whas me using dashes instead of underscores my issue! my new example template

title: Mon post
link: mon-post
lang: fr
meta_description: If no meta description is set, it will default to the first 160 characters of the content of the post.
tags: posts,writing,2023

___
# Titre

And the final result : image

Thanks a lot :D