@ -15,20 +15,20 @@
end
end
%>
%>
% # << is always active link pointing to 0
% # << 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
% # < points to 0 if page 0 or below
% if page <= 0:
% if page <= 0:
<a href=/diary/0 ><</a>
<a href=/diary/0 rel="nofollow" ><</a>
% # < points to previous page otherwise
% # < points to previous page otherwise
% else:
% else:
<a href=/diary/ { { page - 1 } } ><</a>
<a href=/diary/ { { page - 1 } } rel="nofollow" ><</a>
% end
% end
% # fill out number cluster to the left when page is high
% # fill out number cluster to the left when page is high
% if max_pages > cluster and page > max_pages - cluster:
% if max_pages > cluster and page > max_pages - cluster:
% for j in range(cluster - max_pages + page):
% 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
% end
% end
@ -39,27 +39,27 @@
<b> { { i } } </b>
<b> { { i } } </b>
% # form neighboring numbers into links
% # form neighboring numbers into links
% else:
% else:
<a href=/diary/ { { i } } >{ { i } } </a>
<a href=/diary/ { { i } } rel="nofollow" >{ { i } } </a>
% end
% end
% end
% end
% # fill out number cluster to the right when page is low
% # fill out number cluster to the right when page is low
% if page <= cluster - 1 and max_pages > page + cluster:
% if page <= cluster - 1 and max_pages > page + cluster:
% for j in range(cluster - page):
% 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
% end
% end
% # > points to max if page is at or above maximum
% # > points to max if page is at or above maximum
% if page >= max_pages:
% if page >= max_pages:
<a href=/diary/ { { max_pages } } >></a>
<a href=/diary/ { { max_pages } } rel="nofollow" >></a>
% # > point to next page otherwise
% # > point to next page otherwise
% else:
% else:
<a href=/diary/ { { page + 1 } } >></a>
<a href=/diary/ { { page + 1 } } rel="nofollow" >></a>
% end
% end
% # >> is always active link to maximum page
% # >> is always active link to maximum page
<a href=/diary/ { { max_pages } } >>></a>
<a href=/diary/ { { max_pages } } rel="nofollow" >>></a>
</center>
</center>
</div>
</div>
@ -69,7 +69,7 @@
% for s in snippets[page * limit:page * limit + limit]:
% for s in snippets[page * limit:page * limit + limit]:
<div class="snippet">
<div class="snippet">
<div class="snippet-title">
<div class="snippet-title">
<a href= { { s [ 4 ] } } >{ { ! s [ 0 ] } } </a>
<a href= { { s [ 4 ] } } rel="nofollow" >{ { ! s [ 0 ] } } </a>
</div>
</div>
<div class="snippet-content">
<div class="snippet-content">
{ { ! s [ 1 ] } }
{ { ! s [ 1 ] } }
@ -78,7 +78,7 @@
{ { ! s [ 2 ] } } • { { ! s [ 3 ] } }
{ { ! s [ 2 ] } } • { { ! s [ 3 ] } }
</div>
</div>
<div class="snippet-link">
<div class="snippet-link">
<a href= { { s [ 4 ] } } >Read More</a>
<a href= { { s [ 4 ] } } rel="nofollow" >Read More</a>
</div>
</div>
</div>
</div>
% end
% end