From ae3927e0f12101bb8a788b4564657e1632f7e29d Mon Sep 17 00:00:00 2001 From: Yaroslav Date: Tue, 17 Mar 2020 22:39:16 +0300 Subject: migrated Oct 2018 posts --- .../weblog/2018-10-10_w3blog-v05-release/index.md | 64 ++++++++++++++++++++++ 1 file changed, 64 insertions(+) create mode 100644 content/weblog/2018-10-10_w3blog-v05-release/index.md (limited to 'content/weblog/2018-10-10_w3blog-v05-release/index.md') diff --git a/content/weblog/2018-10-10_w3blog-v05-release/index.md b/content/weblog/2018-10-10_w3blog-v05-release/index.md new file mode 100644 index 0000000..490bd4d --- /dev/null +++ b/content/weblog/2018-10-10_w3blog-v05-release/index.md @@ -0,0 +1,64 @@ ++++ +title = "New w3blog release, version 0.5" +date = 2018-10-10T12:04:00Z ++++ + +After some months without much free time, I finally could sit down a week ago +and start working on an update to my blog engine that had been sitting on my +to-do list for quite some time. This update brings improvements and new +features to w3blog. + + + +First of all, bloat was removed on the front end (client) side of things. I +got rid of Bootstrap, and JQuery, and rewrote the default CSS sheet. The +default look of the engine is actually pleasant to look at, the css sheet +weighs only 5.6K unminified (vs 138K of minified bootstrap's css), and of +course weight has also been slimmed down by removing JQuery (it was only +really needed by bootstrap). + +v0.4 default look + +![v0.4](v04.png) + +v0.5 default look + +![v0.5](v05.png) + +Speaking about improvements, comments now have a date of publishing. Really not +sure how I overlooked such a thing for so long. + +The new features are: + +* Dynamic loading of posts on the main page, and category and archive pages. If + you turn on this feature, instead of getting the traditional pagination + buttons at the end of the page, you get a button to load the next batch of + posts through AJAX, so that it doesn't load a whole new page. You turn this + by adding `'dynamic_load': True` to `WEBLOG_SETTINGS`. +* Infinite scroll for dynamic loading. When this and dynamic loading are + active, after scrolling to the bottom of the page (index, category page, + archive page), the next batch of posts are loaded automatically through AJAX. + Turn on dynamic loading (see above) and add `'infinite_load': True` to + `WEBLOG_SETTINGS`. +* Floating sidebar. To turn this feature on, you add `'floating_sidebar': True` + to `WEBLOG_SETTINGS`. What this does, is make the sidebar float next to the + content container after scrolling past the navbar and breadcrumb bar. +* These are basically all of the changes in this new release. If you happen to + already be using w3blog and are using a custom css sheet, you will need to + redo your css since the templates changed a bit since version 0.4, mainly the + html/css classes used. You will also need to make migrations and migrate them + to the database. + +I had plans for other features for this release, but I decided to postpone them +for now. One of them was a way to add custom elements/html to the sidebar +without having to modify w3blog templates. Unfortunately I didn't find a sane +way of doing this. + +If you have any issues with w3blog, or maybe even suggestions, the first option +would be to open an issue on its Github page, if you don't have a Github +account (and don't want to create one), you can write me an email at +[contact@yaroslavps.com](mailto:contact@yaroslavps.com). However, if you are +using one of the big email providers (e.g. outlook or gmail), my response could +be blocked by your provider. + +[w3blog's GitHub page](https://github.com/Yaroslav-95/w3blog). -- cgit v1.2.3