added rel="nofollow" to links throughout site

This commit is contained in:
chimchooree
2020-10-04 20:38:13 -05:00
parent fc43c6b711
commit 71e67ed1e6
5 changed files with 22 additions and 22 deletions
+11 -11
View File
@@ -15,20 +15,20 @@
end
%>
% # << is always active link pointing to 0
<a href=/diary/0><<</a>
<a href=/diary/0 rel="nofollow"><<</a>
% # < points to 0 if page 0 or below
% if page <= 0:
<a href=/diary/0><</a>
<a href=/diary/0 rel="nofollow"><</a>
% # < points to previous page otherwise
% else:
<a href=/diary/{{page - 1}}><</a>
<a href=/diary/{{page - 1}} rel="nofollow"><</a>
% end
% # fill out number cluster to the left when page is high
% if max_pages > cluster and page > max_pages - cluster:
% for j in range(cluster - max_pages + page):
<a href=/diary/{{max_pages - cluster * 2 + j}}>{{max_pages - cluster * 2 + j}}</a>
<a href=/diary/{{max_pages - cluster * 2 + j}} rel="nofollow">{{max_pages - cluster * 2 + j}}</a>
% end
% end
@@ -39,27 +39,27 @@
<b>{{i}}</b>
% # form neighboring numbers into links
% else:
<a href=/diary/{{i}}>{{i}}</a>
<a href=/diary/{{i}} rel="nofollow">{{i}}</a>
% end
% end
% # fill out number cluster to the right when page is low
% if page <= cluster - 1 and max_pages > page + cluster:
% for j in range(cluster - page):
<a href=/diary/{{page + j + cluster + 1}}>{{page + j + cluster + 1}}</a>
<a href=/diary/{{page + j + cluster + 1}} rel="nofollow">{{page + j + cluster + 1}}</a>
% end
% end
% # > points to max if page is at or above maximum
% if page >= max_pages:
<a href=/diary/{{max_pages}}>></a>
<a href=/diary/{{max_pages}} rel="nofollow">></a>
% # > point to next page otherwise
% else:
<a href=/diary/{{page + 1}}>></a>
<a href=/diary/{{page + 1}} rel="nofollow">></a>
% end
% # >> is always active link to maximum page
<a href=/diary/{{max_pages}}>>></a>
<a href=/diary/{{max_pages}} rel="nofollow">>></a>
</center>
</div>
@@ -69,7 +69,7 @@
% for s in snippets[page * limit:page * limit + limit]:
<div class="snippet">
<div class="snippet-title">
<a href={{s[4]}}>{{!s[0]}}</a>
<a href={{s[4]}} rel="nofollow">{{!s[0]}}</a>
</div>
<div class="snippet-content">
{{!s[1]}}
@@ -78,7 +78,7 @@
{{!s[2]}}{{!s[3]}}
</div>
<div class="snippet-link">
<a href={{s[4]}}>Read More</a>
<a href={{s[4]}} rel="nofollow">Read More</a>
</div>
</div>
% end