diary nav numbers are links; current page is not a link but bolded

small-nav
chimchooree 4 years ago
parent 04f23c4e29
commit 3a08c07f92

@ -4,12 +4,10 @@
<div class="diary-dir"> <div class="diary-dir">
% for i in range(max(0,page - limit), min(total,page + limit)): % for i in range(max(0,page - limit), min(total,page + limit)):
% if i == page: % if i == page:
<b> <b>{{i}}</b>
% end % else:
{{i}} <a href={{i}}>{{i}}</a>
% if i == page: % end
</b>
% end
% end % end
</div> </div>
@ -17,20 +15,20 @@
<div class="diary-pages"> <div class="diary-pages">
% for s in snippets: % for s in snippets:
<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]}}>{{!s[0]}}</a>
</div> </div>
<div class="snippet-content"> <div class="snippet-content">
{{!s[1]}} {{!s[1]}}
</div> </div>
<div class="snippet-info"> <div class="snippet-info">
{{!s[2]}}{{!s[3]}} {{!s[2]}}{{!s[3]}}
</div>
<div class="snippet-link">
<a href={{s[4]}}>Read More</a>
</div>
</div> </div>
<div class="snippet-link">
<a href={{s[4]}}>Read More</a>
</div>
</div>
% end % end
</div> </div>

Loading…
Cancel
Save