[hibernate-dev] [in.relation.to] Only display post summary in list pages

Yoann Rodiere yoann at hibernate.org
Tue Mar 20 09:23:39 EDT 2018


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.
+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?

On Tue, 20 Mar 2018 at 14:02 Guillaume Smet <guillaume.smet at gmail.com>
wrote:

> Hi,
>
> It's been bugging me for a while and I took some time this morning to do
> some changes to the post list pages of the blog.
>
> We currently display the whole articles whereas I thought it would be
> better to only display a summary of them and get people to the full article
> with a button.
>
> I pushed the changes on http://staging.in.relation.to/ .
>
> It's based on the Asciidoctor preamble (most of the time) so it takes the
> paragraphs that are before the first title. It's not perfect but it works
> pretty well for most of the posts. We should probably try to write our
> posts so that the summary looks good.
>
> Thoughts?
>
> --
> Guillaume
> _______________________________________________
> hibernate-dev mailing list
> hibernate-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hibernate-dev
>
-- 
Yoann Rodiere
yoann at hibernate.org / yrodiere at redhat.com
Software Engineer
Hibernate NoORM team


More information about the hibernate-dev mailing list