2
0

Add schema.org markup to SEO-enabled posts (#36075)

This commit is contained in:
Eugen Rochko
2025-09-12 11:12:07 +02:00
committed by GitHub
parent b59e06fba7
commit 30b31a89e6
6 changed files with 194 additions and 0 deletions

View File

@@ -3,6 +3,8 @@
- content_for :header_tags do
- if @account.user_prefers_noindex?
%meta{ name: 'robots', content: 'noindex, noarchive' }/
- else
= render_seo_schema @status
%link{ rel: 'alternate', type: 'application/json+oembed', href: api_oembed_url(url: short_account_status_url(@account, @status), format: 'json') }/
%link{ rel: 'alternate', type: 'application/activity+json', href: ActivityPub::TagManager.instance.uri_for(@status) }/