Discourse类别标题主题组件

Nice! It is back to tip-top shape. Thanks for being so amazingly responsive, and throwing an improvement in there as part of the bargain! How it now looks:

1 个赞

Hi Nathan, I’m curious, would it be better if the Read more link was aligned with the description, or inline to the end of it?

I think that it would be best inline at the end of the text.

This would be much more compact / efficient, and more consistent with pinned posts (I think):

1 个赞

@nathank I have added this feature!

This PR adds 2 new features:

  1. More paragraphs to the category description. This adds a new setting, show_full_category_description (default false) to show the full post contents of the About category topic.
  2. Inline ‘Read more’ link. This adds a new setting inline_read_more (default false) to append the ‘Read more’ link at the end of the category description, instead of a few lines down.

Things to note:

  • The inline ‘Read more’ link is not added to the end of the category description when show_full_category_description is true
  • There is no override regarding the category descriptions: you can set both show_category_description and show_full_category_description to true, and both descriptions will be shown. This may be addressed in a later PR.

Please post back here if you face any issues.

3 个赞