From 2a57aa72b589c7525f4e3400955438c6b0379aa7 Mon Sep 17 00:00:00 2001 From: Drew DeVault Date: Fri, 21 Feb 2020 08:18:53 -0500 Subject: [PATCH] Add nofollow attributes to some links --- gitsrht/templates/blob.html | 7 ++++--- gitsrht/templates/ref.html | 1 + 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/gitsrht/templates/blob.html b/gitsrht/templates/blob.html index c307dd6..9f3c9cb 100644 --- a/gitsrht/templates/blob.html +++ b/gitsrht/templates/blob.html @@ -117,9 +117,10 @@ pre, body { - Download {{icon("caret-right")}} - + path=path_join(*path))}}" + class="btn btn-primary" + rel="nofollow" + >Download {{icon("caret-right")}}

diff --git a/gitsrht/templates/ref.html b/gitsrht/templates/ref.html index c099cc2..773c8c0 100644 --- a/gitsrht/templates/ref.html +++ b/gitsrht/templates/ref.html @@ -44,6 +44,7 @@ owner=repo.owner.canonical_name, repo=repo.name, ref=tag.name, filename=artifact.filename)}}" + rel="nofollow" >{{ artifact.filename }} {{icon('caret-right')}}