diff --git a/src/entries/201003.html b/src/entries/201003.html
index 04d00b3..d10039d 100644
--- a/src/entries/201003.html
+++ b/src/entries/201003.html
@@ -47,7 +47,7 @@
-
weekly roundup
+
this week
september 27-october 3, 2020
bottle, css, git, html, regex, regular expressions, website
@@ -61,6 +61,7 @@ bottle, css, git, html, regex, regular expressions, website
- blessfrey.me's diary properly displays snippets for all articles: a header taken from the title, a truncated view of the article, the date + a place for social media share links, and a link to the article.
- Cleaning the snippets enough to look okay and not break the page was a challenge. I used regular expressions to remove html link + header tags, which is apparently a lost cause Stack Overflow users stand against daily, hourly even. It's not so bad if it's not user content, and the content is pretty predictable, right?
+
- Pythex @ https://pythex.org/ is useful for checking whether your regular expression will catch your target strings
- First command line git merge. I usually do it on the website. It's really simple - switch to the branch you're merging the second branch into, type 'git merge second-branch' (second-branch = name of the second branch obviously), and fix any conflicts.
diff --git a/src/views/diary.tpl b/src/views/diary.tpl
index 3886503..0344c38 100644
--- a/src/views/diary.tpl
+++ b/src/views/diary.tpl
@@ -2,6 +2,15 @@
+
+<%
+ if page < 0:
+ page = 0
+ end
+ if page > total:
+ page = total
+ end
+%>
% for i in range(max(0,page - limit), min(total,page + limit)):
% if i == page:
{{i}}