is a Python framework for server-side web development.
diff --git a/src/entries/201003.html b/src/entries/201003.html
index d10039d..8355b5d 100644
--- a/src/entries/201003.html
+++ b/src/entries/201003.html
@@ -47,7 +47,7 @@
-
this week
+
1 this week
september 27-october 3, 2020
bottle, css, git, html, regex, regular expressions, website
diff --git a/src/entries/raw/entries/200801.html b/src/entries/raw/entries/200801.html
new file mode 100644
index 0000000..cce3602
--- /dev/null
+++ b/src/entries/raw/entries/200801.html
@@ -0,0 +1,5 @@
+
10 keyboard spam
+ early
+
+ sdoifsdoijfsdoifjsoidfoisd sdjfoisdu fsdjf oisdjf osdjf osd f dsfoisdfh iusdhisd sdh fsiuhasi u dsiu fsdiuh fdsihdsfiusdahiufdhsiuasf lazy
+
diff --git a/src/entries/raw/entries/200808.html b/src/entries/raw/entries/200808.html
index 5cf7a4c..5901c74 100644
--- a/src/entries/raw/entries/200808.html
+++ b/src/entries/raw/entries/200808.html
@@ -1,4 +1,4 @@
-
weekly roundup
+
9 weekly roundup
august 4-8, 2020
css, html, php, server, website
diff --git a/src/entries/raw/entries/200810.html b/src/entries/raw/entries/200810.html
index fa3d2af..dc50144 100644
--- a/src/entries/raw/entries/200810.html
+++ b/src/entries/raw/entries/200810.html
@@ -1,4 +1,4 @@
-
what is blessfrey?
+
8 what is blessfrey?
august 10, 2020
Blessfrey is a 2D action RPG developed for PC by me, chimchooree.
diff --git a/src/entries/raw/entries/200813.html b/src/entries/raw/entries/200813.html
index b452c94..f5c83dd 100644
--- a/src/entries/raw/entries/200813.html
+++ b/src/entries/raw/entries/200813.html
@@ -1,4 +1,4 @@
-
all weekly updates
+
7 all weekly updates
august 13, 2020
I've kept a more or less consistent private development diary for blessfrey since 2018. Here are the bulleted highlights, broken into weekly portions. I mostly keep it for myself to track progress.
diff --git a/src/entries/raw/entries/200815.html b/src/entries/raw/entries/200815.html
index de4008f..d764fa8 100644
--- a/src/entries/raw/entries/200815.html
+++ b/src/entries/raw/entries/200815.html
@@ -1,4 +1,4 @@
-
weekly roundup
+
6 weekly roundup
august 9-15, 2020
apache, automation, css, html, jenkins, nginx, php, server, website
diff --git a/src/entries/raw/entries/200918.html b/src/entries/raw/entries/200918.html
index a875494..e145a64 100644
--- a/src/entries/raw/entries/200918.html
+++ b/src/entries/raw/entries/200918.html
@@ -1,4 +1,4 @@
-
my favorite GDC talks
+
5 my favorite GDC talks
september 18, 2020
I really should be keeping a list of these with descriptions, so why not keep them in an article?
diff --git a/src/entries/raw/entries/200919.html b/src/entries/raw/entries/200919.html
index 57f9215..391ccaf 100644
--- a/src/entries/raw/entries/200919.html
+++ b/src/entries/raw/entries/200919.html
@@ -1,4 +1,4 @@
-
weekly roundup
+
4 weekly roundup
september 13-19, 2020
bottle
diff --git a/src/entries/raw/entries/200926.html b/src/entries/raw/entries/200926.html
index 80989e4..3aef0dd 100644
--- a/src/entries/raw/entries/200926.html
+++ b/src/entries/raw/entries/200926.html
@@ -1,4 +1,4 @@
-
weekly roundup
+
3 weekly roundup
september 20-26, 2020
bottle
diff --git a/src/entries/raw/entries/201001.html b/src/entries/raw/entries/201001.html
index 9a7019d..cd94c32 100644
--- a/src/entries/raw/entries/201001.html
+++ b/src/entries/raw/entries/201001.html
@@ -1,4 +1,4 @@
-
why bottle over php?
+
2 why bottle over php?
october 1, 2020
Bottle is a Python framework for server-side web development.
diff --git a/src/entries/raw/entries/201003.html b/src/entries/raw/entries/201003.html
index 84085ae..0f27cc8 100644
--- a/src/entries/raw/entries/201003.html
+++ b/src/entries/raw/entries/201003.html
@@ -1,4 +1,4 @@
-
this week
+
1 this week
september 27-october 3, 2020
bottle, css, git, html, regex, regular expressions, website
diff --git a/src/views/diary.tpl b/src/views/diary.tpl
index 6388e5b..304154f 100644
--- a/src/views/diary.tpl
+++ b/src/views/diary.tpl
@@ -3,34 +3,51 @@
+ % max_pages = int(total - 1 / limit)
<%
if page <= 0:
page = 0
end
- if page > int(total - 1 / limit):
- page = int(total - 1 / limit)
- end
+ if page > max_pages:
+ page = max_pages
+ end
%>
- % if page >= limit + 1:
- first
+ <<
+
+ % if page <= 0:
+ <
+ % else:
+ <
% end
- % for i in range(max(0,page - limit), min(total,page + limit)):
+
+ % for i in range(max(0,page - limit), min(total,page + limit + 1)):
% if i == page:
{{i}}
% else:
{{i}}
% end
% end
- % if page <= total - limit:
- last
+
+ % if page <= 2:
+ % for j in range(3 - page):
+ {{page + j + 3}}
+ % end
+ % end
+
+ % if page >= total - limit:
+ >
+ % else:
+ >
% end
+
+ >>
- % for s in snippets:
+ % for s in snippets[page * limit:page * limit + limit]: