# HG changeset patch # User Goffi # Date 1515791132 -3600 # Node ID 650f3456f80d6030f2a4313c7d58ff34375e0e96 # Parent 2963996373fa2715c76e8542f14aa7924c5c19b9 blog/articles: added simple pagination diff -r 2963996373fa -r 650f3456f80d default/blog/articles.html --- a/default/blog/articles.html Fri Jan 12 19:53:18 2018 +0100 +++ b/default/blog/articles.html Fri Jan 12 22:05:32 2018 +0100 @@ -6,4 +6,24 @@
{{ blog.show_items(items) }}
+ {% endblock body %} diff -r 2963996373fa -r 650f3456f80d default/static/blog.css --- a/default/static/blog.css Fri Jan 12 19:53:18 2018 +0100 +++ b/default/static/blog.css Fri Jan 12 22:05:32 2018 +0100 @@ -48,6 +48,44 @@ margin: 0; } +/** navigation links **/ + +.bottom_links ul { + list-style: none; + display: flex; + padding: 0 2em; + margin: 0; +} + +.bottom_links li { + flex: 1; +} + +.bottom_links li.older_items { + text-align: right; +} + +.bottom_links img { + display: block; +} + +.bottom_links .older_items img { + display: block; + margin-left: auto; + margin-right: 0; +} + +.bottom_links a { + display: inline-block; + text-decoration: None; + color: inherit; + font-variant: small-caps; +} + +.bottom_links a:hover { + background-color: #ddd; +} + /** reduce/expand buttons **/ .expand_box { @@ -221,6 +259,10 @@ padding: 0.5em; } + .bottom_links ul { + padding: 0 6em; + } + } /*** clicked ***/