Skip to content

Commit

Permalink
fix: add nofollow to external links
Browse files Browse the repository at this point in the history
  • Loading branch information
AlejandroAkbal committed Mar 6, 2024
1 parent 157b9e5 commit 22890c0
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions components/layout/FeedbackButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
style="writing-mode: vertical-lr; transform: rotate(180deg)"
target="_blank"
to="https://forms.gle/oHukbtLHdot6CuB98"
rel='nofollow noopener noreferrer'
>
<span class="text-sm"> Feedback </span>

Expand Down
2 changes: 2 additions & 0 deletions components/layout/navigation/Sidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
<NuxtLink
class="focus-visible:focus-outline-util hover:hover-text-util hover:hover-bg-util group flex flex-col items-center gap-2 rounded-md p-2 text-sm font-semibold"
href="https://twitter.com/Rule34App"
rel='nofollow noopener noreferrer'
target="_blank"
>
<svg
Expand All @@ -164,6 +165,7 @@
<NuxtLink
class="focus-visible:focus-outline-util hover:hover-text-util hover:hover-bg-util group flex flex-col items-center gap-2 rounded-md p-2 text-sm font-semibold"
href="https://discord.gg/fUhYHSZ"
rel='nofollow noopener noreferrer'
target="_blank"
>
<svg
Expand Down
1 change: 1 addition & 0 deletions components/pages/home/FeaturedDiscount.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
<NuxtLink
class="hover:hover-text-util hover:hover-bg-util focus-visible:focus-outline-util bg-util mt-4 block w-full rounded-lg p-2 text-center font-bold tracking-tight text-base-content-highlight ring-2 ring-base-0/20"
target="_blank"
rel='nofollow noopener noreferrer'
to="https://alejandroakbal.gumroad.com/l/Rule34App/LONELY_VALENTINES"
>
Get 20% Off
Expand Down
1 change: 1 addition & 0 deletions components/pages/posts/PromotedContent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ const premiumPromotions = [
<NuxtLink
:href="promo.link"
:target="promo.link.startsWith('http') ? '_blank' : null"
rel="nofollow noopener noreferrer"
class="focus-visible:focus-outline-util focus-visible:ring-inset"
>
<PostMedia
Expand Down
1 change: 1 addition & 0 deletions components/shared/ContentContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
<NuxtLink
:href="link.href"
:target="link.target"
rel='nofollow noopener noreferrer'
class="hover:hover-text-util focus-visible:focus-outline-util text-sm text-base-content underline"
>
{{ link.text }}
Expand Down
2 changes: 2 additions & 0 deletions pages/premium/dashboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@
<NuxtLink
class="hover:hover-bg-util focus-visible:focus-outline-util block max-w-[95%] rounded-md border border-base-0/20 px-4 py-3"
href="https://forms.gle/9FAZRegzJ8VAzT5F9"
rel='nofollow noopener noreferrer'
target="_blank"
>
<h2 class="text-lg font-bold tracking-tight text-base-content-highlight">Feedback</h2>
Expand All @@ -132,6 +133,7 @@
class="hover:hover-text-util focus-visible:focus-outline-util underline"
href="https://app.gumroad.com/library?query=Rule+34+App"
target="_blank"
rel='nofollow noopener noreferrer'
>
Manage subscription
</NuxtLink>
Expand Down
3 changes: 3 additions & 0 deletions pages/premium/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@
class="focus-visible:focus-outline-util hover:hover-text-util mt-12 flex flex-col items-center justify-center gap-2.5 pb-4"
href="https://gum.co/Rule34App#Ratings"
target="_blank"
rel='nofollow noopener noreferrer'
>
<div class="flex items-center">
<StarIcon
Expand Down Expand Up @@ -211,6 +212,7 @@
aria-describedby="premium-features"
class="focus-visible:focus-outline-util hover:hover-text-util rounded-md bg-primary-700 px-3 py-2 text-center text-sm font-semibold leading-6 text-base-content-highlight hover:bg-primary-600 focus-visible:ring-offset-2"
href="https://gum.co/Rule34App"
rel='nofollow noopener noreferrer'
target="_blank"
onclick="window._paq?.push(['trackEvent', 'Premium', 'Subscribe Link Click'])"
>
Expand All @@ -223,6 +225,7 @@
<NuxtLink
class="focus-visible:focus-outline-util hover:hover-text-util"
href="https://gumroad.com/discover"
rel='nofollow noopener noreferrer'
target="_blank"
>
Gumroad
Expand Down
1 change: 1 addition & 0 deletions pages/premium/sign-in.vue
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
class="hover:hover-text-util focus-visible:focus-outline-util font-semibold"
href="https://app.gumroad.com/library?query=Rule+34+App"
target="_blank"
rel='nofollow noopener noreferrer'
>
Forgot license?
</NuxtLink>
Expand Down

0 comments on commit 22890c0

Please sign in to comment.