Add option to opt out of search engines on public profile/status pages (#4199)
This commit is contained in:
parent
999170d898
commit
c42092ba7a
11 changed files with 30 additions and 0 deletions
|
@ -1,4 +1,7 @@
|
|||
- content_for :header_tags do
|
||||
- if @account.user&.setting_noindex
|
||||
%meta{ name: 'robots', content: 'noindex' }/
|
||||
|
||||
%link{ rel: 'alternate', type: 'application/atom+xml', href: account_stream_entry_url(@account, @stream_entry, format: 'atom') }/
|
||||
%link{ rel: 'alternate', type: 'application/json+oembed', href: api_oembed_url(url: account_stream_entry_url(@account, @stream_entry), format: 'json') }/
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue