views: add rel=nofollow to some links

This commit is contained in:
Georg Gadinger 2021-12-31 19:23:32 +01:00
parent d1febbd5a4
commit 34aeb2350c
2 changed files with 2 additions and 2 deletions

View File

@ -9,4 +9,4 @@
- APP_LOCALES.each do |key, value| - APP_LOCALES.each do |key, value|
%li %li
.flag{ class: "flag-#{value[1]}" } .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? - unless user.profile.website.blank?
.profile__website .profile__website
%i.fa.fa-fw.fa-globe %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? - unless user.profile.location.blank?
.profile__location .profile__location
%i.fa.fa-fw.fa-location-arrow %i.fa.fa-fw.fa-location-arrow