Merge pull request #252 from Retrospring/rel-nofollow

views: add rel=nofollow to some links
This commit is contained in:
Karina Kwiatek 2021-12-31 21:47:18 +01:00 committed by GitHub
commit c3ca93de7f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -9,4 +9,4 @@
- APP_LOCALES.each do |key, value|
%li
.flag{ class: "flag-#{value[1]}" }
%a{ href: "?hl=#{key}" }= value[0]
%a{ href: "?hl=#{key}", rel: 'nofollow' }= value[0]

View File

@ -30,7 +30,7 @@
- unless user.profile.website.blank?
.profile__website
%i.fa.fa-fw.fa-globe
%a{ href: user.profile.website, target: '_blank' }= user.profile.display_website
%a{ href: user.profile.website, target: '_blank', rel: 'nofollow' }= user.profile.display_website
- unless user.profile.location.blank?
.profile__location
%i.fa.fa-fw.fa-location-arrow