0
0
Commit Graph

18 Commits

Author SHA1 Message Date
Gibheer
7a5cbc3c7a initial commit for routing 2014-07-22 21:27:39 +02:00
Gibheer
2bea1df808 prepare for rebuilding
This is in preparation of remodeling the blog in go.
2014-07-22 20:25:11 +02:00
Gibheer
45ce571448 fix pagination
This fixes the pagination not working at all. After the refactoring the
modification of the SQL query was lost which resulted in pagination not working.
2014-02-18 22:11:30 +01:00
Gibheer
256b4da778 convert the RouteNotFound route to a controller
This way RouteNotFound can use the renderer to display a more helpful
message in the design of the rest of the page.
2014-02-13 22:41:09 +01:00
Gibheer
ea72da5259 rework post controller
To handle errors correctly the post controller needed some rework. Now
instead of single functions running all around the place, there is one
function collecting the data needed and raising errors when needed.

For that to work, the controller class can now return more classes to
keep the chain going. Unless a class is returned, it will call the
renderer.
2014-02-13 22:38:42 +01:00
Gibheer
db30448a8e do not jump out when nothing was found 2014-02-11 23:12:59 +01:00
Gibheer
c4eb4e3363 assign the posts only at one point
This makes it easier to find out, if posts have been found at all. The
next step is to use that information and show a hint when nothing was
found.
2014-02-11 23:09:34 +01:00
Gibheer
11ac9461c2 add new helper and implement search
This adds fulltext search for blog posts. Together with the render
object this creates a new possibility to extend the blog.
2014-01-23 21:59:24 +01:00
Gibheer
dded05bb52 order by id when the timestamp is equal
This can happen when multiple blog posts get inserted at once, so we
should order by id too.
2014-01-16 09:00:18 +01:00
Gibheer
6aa8f1c2a2 new next and previous buttons
When selecting only one post buttons to select the previous and next
blog posts are added. These can then be used to read one blog post per
page.
2014-01-02 21:38:21 +01:00
Gibheer
294625f251 add pagination to the page 2013-10-29 20:39:47 +01:00
Gibheer
693e118a84 add basics for pagination 2013-10-29 19:47:17 +01:00
Gibheer
77053f05d8 add first draft of design
This adds the first couple css rules for the new design.
2013-10-27 19:50:32 +01:00
Gibheer
fcb995b0f0 small controller to deliver images
This is nice for development, but should not be used in production. Most
webservers can do better.
2013-10-27 19:46:16 +01:00
Gibheer
5a65a3dc40 reroute atom controller to post
This is not really good, but okay for the moment until the template is
extracted into its own namespace.
2013-10-27 13:39:44 +01:00
Gibheer
4e04cce391 add atom feed 2013-10-26 17:52:52 +02:00
Gibheer
0e547febf1 add post controller
This adds the post controller to get the posts from the database and
make apply all filters needed to make it a workable result.
2013-10-26 14:56:55 +02:00
Gibheer
2ac3320d34 the beginning of a new blog 2013-10-20 22:04:01 +02:00