Set noindex robots tag on content of users that enable it

This commit is contained in:
Andreas Nedbal 2022-11-16 22:33:04 +01:00
parent f8e43a9bb0
commit 4c820b472e
1 changed files with 2 additions and 0 deletions

View File

@ -9,6 +9,8 @@
%meta{ name: 'theme-color', content: mobile_theme_color, media: '(max-width: 992px)' }
- else
%meta{ name: 'theme-color', content: theme_color }
- if @user&.privacy_noindex? || @answer&.user&.privacy_noindex? || @question&.user&.privacy_noindex?
%meta{ name: 'robots', content: 'noindex' }
%link{ rel: 'manifest', href: '/manifest.json', crossorigin: 'use-credentials' }
%link{ rel: 'apple-touch-icon', href: '/icons/maskable_icon_x192.png' }
%link{ rel: 'mask-icon', href: '/icons/icon.svg', color: theme_color }