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