On Tue, Mar 20, 2018 at 2:23 PM, Yoann Rodiere <yoann(a)hibernate.org> wrote:
It's definitely better. There are a few drawbacks, such as the
summary not
displaying for older, non-asciidoctor posts, but the list was barely usable
without your change, so I think it's still an improvement.
I improved the extraction routine for the older posts. It extracts the very
first paragraph when it can.
+1 to merge, thanks for working on this!
One improvement we could work on is to add an ellipsis when the summary is
too long, to handle those few posts where there isn't any title. Say we
would only keep the first 500 characters, something like that, and add
"(...)" at the end if we had to truncate the summary.
We may be able to hack something in CSS (I'm not sure, but maybe), but in
this case I'd rather try to something in Ruby, if possible. Do you think it
would be possible?
My position on this is that we should take it into account when writing our
blog posts.
But from now on, if the preamble is longer than 5 paragraphs, I now extract
the first 3. It fixes the issue with Gunnar's post on the front page.
--
Guillaume