toto
toto copied to clipboard
Friendly display of article having a damaged "front matter"
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
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