From d3f23965f3cb6007df1c467cbd283495d6b249e6 Mon Sep 17 00:00:00 2001 From: chimchooree Date: Sat, 3 Oct 2020 23:14:21 -0500 Subject: [PATCH] added new article for 10 articles so it's never divisible by 3 or 4; pagination showing the proper number of the correct articles per page --- src/entries/200801.html | 92 +++++++++++++++++++++++++++++ src/entries/200808.html | 2 +- src/entries/200810.html | 2 +- src/entries/200813.html | 2 +- src/entries/200815.html | 2 +- src/entries/200918.html | 2 +- src/entries/200919.html | 2 +- src/entries/200926.html | 2 +- src/entries/201001.html | 2 +- src/entries/201003.html | 2 +- src/entries/raw/entries/200801.html | 5 ++ src/entries/raw/entries/200808.html | 2 +- src/entries/raw/entries/200810.html | 2 +- src/entries/raw/entries/200813.html | 2 +- src/entries/raw/entries/200815.html | 2 +- src/entries/raw/entries/200918.html | 2 +- src/entries/raw/entries/200919.html | 2 +- src/entries/raw/entries/200926.html | 2 +- src/entries/raw/entries/201001.html | 2 +- src/entries/raw/entries/201003.html | 2 +- src/views/diary.tpl | 35 ++++++++--- 21 files changed, 141 insertions(+), 27 deletions(-) create mode 100644 src/entries/200801.html create mode 100644 src/entries/raw/entries/200801.html diff --git a/src/entries/200801.html b/src/entries/200801.html new file mode 100644 index 0000000..cff3fd3 --- /dev/null +++ b/src/entries/200801.html @@ -0,0 +1,92 @@ + + + + + + chimchooree's dev space - blessfrey + + + + + + + +
+
+ blessfrey.me
+
+ + + + + + + +
+ +
+

10 keyboard spam

+ early +
+ sdoifsdoijfsdoifjsoidfoisd sdjfoisdu fsdjf oisdjf osdjf osd f dsfoisdfh iusdhisd sdh fsiuhasi u dsiu fsdiuh fdsihdsfiusdahiufdhsiuasf lazy +
+
+ + +
+

about blessfrey

+ It's a game.
+
+ + + +
+

latest

+ Some articles.
+
+ +
+

disclosure

+ No sponsored posts or affiliate links appear in this blog. If they do, they will be properly disclosed.
+
+ blessfrey.me does not collect personal information + has no cookies.
+
+ + + +
+ + + + diff --git a/src/entries/200808.html b/src/entries/200808.html index 4ef254b..954e16c 100644 --- a/src/entries/200808.html +++ b/src/entries/200808.html @@ -47,7 +47,7 @@
-

weekly roundup

+

9 weekly roundup

august 4-8, 2020 css, html, php, server, website

diff --git a/src/entries/200810.html b/src/entries/200810.html index e5abbe9..1ab79e2 100644 --- a/src/entries/200810.html +++ b/src/entries/200810.html @@ -47,7 +47,7 @@
-

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/200813.html b/src/entries/200813.html index 579b3c3..124e5e1 100644 --- a/src/entries/200813.html +++ b/src/entries/200813.html @@ -47,7 +47,7 @@
-

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/200815.html b/src/entries/200815.html index ee0a802..dc8153a 100644 --- a/src/entries/200815.html +++ b/src/entries/200815.html @@ -47,7 +47,7 @@
-

weekly roundup

+

6 weekly roundup

august 9-15, 2020 apache, automation, css, html, jenkins, nginx, php, server, website

diff --git a/src/entries/200918.html b/src/entries/200918.html index 9382d16..3e0aea1 100644 --- a/src/entries/200918.html +++ b/src/entries/200918.html @@ -47,7 +47,7 @@
-

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/200919.html b/src/entries/200919.html index 330ee99..7da3e3c 100644 --- a/src/entries/200919.html +++ b/src/entries/200919.html @@ -47,7 +47,7 @@
-

weekly roundup

+

4 weekly roundup

september 13-19, 2020 bottle

diff --git a/src/entries/200926.html b/src/entries/200926.html index 23b2da5..406c3cf 100644 --- a/src/entries/200926.html +++ b/src/entries/200926.html @@ -47,7 +47,7 @@
-

weekly roundup

+

3 weekly roundup

september 20-26, 2020 bottle

diff --git a/src/entries/201001.html b/src/entries/201001.html index 2578647..fadd073 100644 --- a/src/entries/201001.html +++ b/src/entries/201001.html @@ -47,7 +47,7 @@
-

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/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]: