Add noai tags
This commit is contained in:
parent
f3867c10de
commit
2317e7ddac
7 changed files with 18 additions and 7 deletions
|
@ -3,8 +3,11 @@
|
|||
|
||||
- content_for :header_tags do
|
||||
- if @account.user_prefers_noindex?
|
||||
%meta{ name: 'robots', content: 'noindex, noarchive' }/
|
||||
%meta{ name: 'robots', content: 'noindex, noarchive, noai, noimageai' }/
|
||||
- else
|
||||
%meta{ name: 'robots', content: 'noai, noimageai' }/
|
||||
|
||||
%meta{ name: 'CCBot', content: 'nofollow' }
|
||||
%link{ rel: 'alternate', type: 'application/rss+xml', href: @rss_url }/
|
||||
%link{ rel: 'alternate', type: 'application/activity+json', href: ActivityPub::TagManager.instance.uri_for(@account) }/
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
- content_for :header_tags do
|
||||
%meta{ name: 'robots', content: 'noindex' }/
|
||||
%meta{ name: 'robots', content: 'noindex, noai, noimageai' }/
|
||||
%meta{ name: 'CCBot', content: 'nofollow' }
|
||||
|
||||
= render 'accounts/og', account: @account, url: account_followers_url(@account, only_path: false)
|
||||
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
- content_for :header_tags do
|
||||
%meta{ name: 'robots', content: 'noindex' }/
|
||||
%meta{ name: 'robots', content: 'noindex, noai, noimageai' }/
|
||||
%meta{ name: 'CCBot', content: 'nofollow' }
|
||||
|
||||
= render 'accounts/og', account: @account, url: account_followers_url(@account, only_path: false)
|
||||
|
||||
|
|
|
@ -1,6 +1,7 @@
|
|||
- content_for :header_tags do
|
||||
- unless request.path == '/'
|
||||
%meta{ name: 'robots', content: 'noindex' }/
|
||||
%meta{ name: 'robots', content: 'noindex, noai, noimageai' }/
|
||||
%meta{ name: 'CCBot', content: 'nofollow' }
|
||||
|
||||
= render partial: 'shared/og'
|
||||
|
||||
|
|
|
@ -2,7 +2,8 @@
|
|||
%html{ lang: I18n.locale }
|
||||
%head
|
||||
%meta{ charset: 'utf-8' }/
|
||||
%meta{ name: 'robots', content: 'noindex' }/
|
||||
%meta{ name: 'robots', content: 'noindex, noai, noimageai' }/
|
||||
%meta{ name: 'CCBot', content: 'nofollow' }
|
||||
|
||||
- if cdn_host?
|
||||
%link{ rel: 'dns-prefetch', href: cdn_host }/
|
||||
|
|
|
@ -3,7 +3,10 @@
|
|||
|
||||
- content_for :header_tags do
|
||||
- if @account.user_prefers_noindex?
|
||||
%meta{ name: 'robots', content: 'noindex, noarchive' }/
|
||||
%meta{ name: 'robots', content: 'noindex, noarchive, noai, noimageai' }/
|
||||
- else
|
||||
%meta{ name: 'robots', content: 'noai, noimageai' }/
|
||||
%meta{ name: 'CCBot', content: 'nofollow' }
|
||||
|
||||
%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) }/
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
- content_for :header_tags do
|
||||
%meta{ name: 'robots', content: 'noindex' }/
|
||||
%meta{ name: 'robots', content: 'noindex, noai, noimageai' }/
|
||||
%meta{ name: 'CCBot', content: 'nofollow' }
|
||||
= render partial: 'shared/og'
|
||||
|
||||
= render partial: 'shared/web_app'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue