Blockpress supports js and jquery libraries for theme creation

Firefox_Screenshot_2018-05-16T10-37-02.789Z.png

https://github.com/blockpress/blockpress.me

New Features

Javascript support for themes

Firefox_Screenshot_2018-05-16T11-47-48.273Z.png

This new feature means that theme creators no longer need to embed their scripts in the HTML. Having separate javascript files in the theme folder makes the structure more transparent and logical. This should be very helpful to both new and experienced creators. It makes the system more understandable and easier to debug.

Jquery.transit library enabled for themes and modules

Firefox_Screenshot_2018-05-16T11-44-52.794Z.png

One of the things I have been working on is to implement CSS transitions and transforms into our themes. So far trollfell theme was using jquery animate to open and close the sidebar and I wanted it to use transitions instead. To be able to fully explore this a jquery library proved very useful. I chose jquery.transit because it seems powerful, well documented and it's easy to grab and run with, which is what I needed. I tested it out by using it in the trollfell theme. I will be exploring it further in this and other themes in the near future.

template.html files renamed to match theme names

Firefox_Screenshot_2018-05-16T11-49-24.434Z.png

I renamed template.html theme files to match the theme names, but because of how BlockPress was written they wouldn't load properly. I had a look at init.js file getThemeHTML function and changed the URL path to the file. Now themes load with no trouble. This is a small adjustment but it makes the file structure consistent, logical and easier to work with, which I consider important. It is especially useful when working with and comparing templates from different themes. A clear naming strategy removes the likelihood of mistakenly editing the wrong file and improves overall workflow.

Commits:

Follow

You can now follow the progress of BlockPress.me CMS on various social media, including our new channel on steem chat, and our new @blockpress steem account!

H2
H3
H4
3 columns
2 columns
1 column
Join the conversation now
Logo
Center