toto icon indicating copy to clipboard operation
toto copied to clipboard

Friendly display of article having a damaged "front matter"

Open thenrio opened this issue 14 years ago • 1 comments

Hello !

Having a damaged file under /articles prevents site from displaying '/'

TypeError at /
can't convert String into Hash

Damaged?

By damaged, I mean front matter does not parse to Hash using YAML.load

(I had a quick search on ticket 'convert' keyword, and did not find)

So here is a topic branch for this functionality

Why do I think it is useful ?

One mistake means no site

I made a demo with such an article ... (git checkout saved me after 30s of bewilderment)

What may be better ?

reduce list of article to undamaged articles (ignore damaged article)

Cheers

thenrio avatar Jan 24 '11 15:01 thenrio

That's a great proposal I think. The only I would like to see is more obvious method names and error messages https://github.com/thierryhenrio/toto/commit/3903d57d30160e7eae469402a0db24d0716e491c#commitcomment-523641

ixti avatar Aug 10 '11 11:08 ixti