Remove fallback to long description on sidebar and meta description (#12119)
Fix #12114
This commit is contained in:
parent
4a98e77d0e
commit
19cdc62765
4 changed files with 9 additions and 11 deletions
|
@ -52,13 +52,12 @@
|
||||||
.hero-widget__img
|
.hero-widget__img
|
||||||
= image_tag @instance_presenter.hero&.file&.url || @instance_presenter.thumbnail&.file&.url || asset_pack_path('media/images/preview.jpg'), alt: @instance_presenter.site_title
|
= image_tag @instance_presenter.hero&.file&.url || @instance_presenter.thumbnail&.file&.url || asset_pack_path('media/images/preview.jpg'), alt: @instance_presenter.site_title
|
||||||
|
|
||||||
- if @instance_presenter.site_short_description.present?
|
.hero-widget__text
|
||||||
.hero-widget__text
|
%p
|
||||||
%p
|
= @instance_presenter.site_short_description.html_safe.presence || t('about.about_mastodon_html')
|
||||||
= @instance_presenter.site_short_description.html_safe.presence
|
= link_to about_more_path do
|
||||||
= link_to about_more_path do
|
= t('about.learn_more')
|
||||||
= t('about.learn_more')
|
= fa_icon 'angle-double-right'
|
||||||
= fa_icon 'angle-double-right'
|
|
||||||
|
|
||||||
.hero-widget__footer
|
.hero-widget__footer
|
||||||
.hero-widget__footer__column
|
.hero-widget__footer__column
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
= image_tag @instance_presenter.hero&.file&.url || @instance_presenter.thumbnail&.file&.url || asset_pack_path('media/images/preview.jpg'), alt: @instance_presenter.site_title
|
= image_tag @instance_presenter.hero&.file&.url || @instance_presenter.thumbnail&.file&.url || asset_pack_path('media/images/preview.jpg'), alt: @instance_presenter.site_title
|
||||||
|
|
||||||
.hero-widget__text
|
.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)
|
%p= @instance_presenter.site_short_description.html_safe.presence || t('about.about_mastodon_html')
|
||||||
|
|
||||||
- if Setting.trends && !(user_signed_in? && !current_user.setting_trends)
|
- if Setting.trends && !(user_signed_in? && !current_user.setting_trends)
|
||||||
- trends = TrendingTags.get(3)
|
- trends = TrendingTags.get(3)
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
- thumbnail = @instance_presenter.thumbnail
|
- thumbnail = @instance_presenter.thumbnail
|
||||||
- description ||= strip_tags(@instance_presenter.site_short_description.presence || @instance_presenter.site_description.presence || t('about.about_mastodon_html'))
|
- description ||= strip_tags(@instance_presenter.site_short_description.presence || t('about.about_mastodon_html'))
|
||||||
|
|
||||||
%meta{ name: 'description', content: description }/
|
%meta{ name: 'description', content: description }/
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
en:
|
en:
|
||||||
about:
|
about:
|
||||||
about_hashtag_html: These are public toots tagged with <strong>#%{hashtag}</strong>. You can interact with them if you have an account anywhere in the fediverse.
|
about_hashtag_html: These are public toots tagged with <strong>#%{hashtag}</strong>. You can interact with them if you have an account anywhere in the fediverse.
|
||||||
about_mastodon_html: Mastodon is a social network based on open web protocols and free, open-source software. It is decentralized like e-mail.
|
about_mastodon_html: 'The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!'
|
||||||
about_this: About
|
about_this: About
|
||||||
active_count_after: active
|
active_count_after: active
|
||||||
active_footnote: Monthly Active Users (MAU)
|
active_footnote: Monthly Active Users (MAU)
|
||||||
|
@ -18,7 +18,6 @@ en:
|
||||||
discover_users: Discover users
|
discover_users: Discover users
|
||||||
documentation: Documentation
|
documentation: Documentation
|
||||||
federation_hint_html: With an account on %{instance} you'll be able to follow people on any Mastodon server and beyond.
|
federation_hint_html: With an account on %{instance} you'll be able to follow people on any Mastodon server and beyond.
|
||||||
generic_description: "%{domain} is one server in the network"
|
|
||||||
get_apps: Try a mobile app
|
get_apps: Try a mobile app
|
||||||
hosted_on: Mastodon hosted on %{domain}
|
hosted_on: Mastodon hosted on %{domain}
|
||||||
instance_actor_flash: |
|
instance_actor_flash: |
|
||||||
|
|
Loading…
Reference in a new issue