lwojcik / eleventy-template-bliss

Single-column blog template for Eleventy focused on simplicity without sacrificing functionality
https://eleventy-bliss.lkmt.us/
MIT License
88 stars 20 forks source link

Post description will display footnotes as text instead of markdown syntax #122

Closed mark-pitblado closed 1 month ago

mark-pitblado commented 6 months ago

Minor issue, but I noticed that footnote syntax will display in the truncated description (notice the [1] following 'catppuccin').

image

If you like, I can work to submit a fix for this, I just cannot promise anything in terms of timeline.

mark-pitblado commented 6 months ago

Actually, the more I think about this, I guess this is actually the proper behaviour? It doesn't make practical sense for footnotes to be displayed in an excerpt, however the fact that the word has a reference is information that would appear in something like a printed book. I think in the json excerpt it may create a funny link because it will try to reference a footnote that isn't there.

If you think that the current state is how it should work than feel free to close!

lwojcik commented 6 months ago

Hi @mark-pitblado,

Thanks for reaching out!

That was my personal choice and it was about aesthetics - I wanted the front page to look a little cleaner and display extra formatting only with full posts.

I'm not closing this yet though - I'll see if HTML formatting can be safely enabled for post excerpts and implement it as an optional feature if the answer is yes.

lwojcik commented 1 month ago

Okay, I had a look at this and I will not be changing that for now.

I know those footnotes in the excerpts look funny, but I have no idea how to change it in a way they remain usable. And I can't think of a way to remove them entirely from the excerpts.

But I might be open to review a pull request tackling this problem in some smart way.

mark-pitblado commented 1 month ago

I agree, after further reflection I also don't know how it would be handled differently.