~edwargix/git.sr.ht

2a57aa72b589c7525f4e3400955438c6b0379aa7 — Drew DeVault 5 years ago 4774e65
Add nofollow attributes to some links
2 files changed, 5 insertions(+), 3 deletions(-)

M gitsrht/templates/blob.html
M gitsrht/templates/ref.html
M gitsrht/templates/blob.html => gitsrht/templates/blob.html +4 -3
@@ 117,9 117,10 @@ pre, body {
          <a href="{{url_for("repo.raw_blob",
              owner=repo.owner.canonical_name,
              repo=repo.name, ref=ref,
              path=path_join(*path))}}" class="btn btn-primary">
            Download {{icon("caret-right")}}
          </a>
              path=path_join(*path))}}"
              class="btn btn-primary"
              rel="nofollow"
          >Download {{icon("caret-right")}}</a>
        </p>
      </div>
    </div>

M gitsrht/templates/ref.html => gitsrht/templates/ref.html +1 -0
@@ 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')}}</a><br />
          <span
            class="text-muted"