Add trends to public pages sidebar (#11594)
This commit is contained in:
parent
96702e7f67
commit
c6b4b923e6
4 changed files with 29 additions and 5 deletions
|
@ -4,3 +4,13 @@
|
|||
|
||||
.hero-widget__text
|
||||
%p= @instance_presenter.site_short_description.html_safe.presence || @instance_presenter.site_description.html_safe.presence || t('about.generic_description', domain: site_hostname)
|
||||
|
||||
- if Setting.trends
|
||||
- trends = TrendingTags.get(3)
|
||||
|
||||
- unless trends.empty?
|
||||
.endorsements-widget.trends-widget
|
||||
%h4.emojify= t('footer.trending_now')
|
||||
|
||||
- trends.each do |tag|
|
||||
= react_component :hashtag, hashtag: ActiveModelSerializers::SerializableResource.new(tag, serializer: REST::TagSerializer).as_json
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue