- Date: March 20, 2018
- Author: Jaime A. Rodriguez [email protected]
- Version: 1.1
- License: http://opensource.org/licenses/MIT
Adds a class to the HTML tag to the "{{ urlClass }}" placeholder allowing you to target pages via CSS using the URL. It replaces spaces and forward slashes with dashes to make it URL friendly. It adds "-index" to the end of the class if the page is the default page in that directory.
<html class="{{ urlClass }}">
...
</html>
- Bugfix: Trailing slashes are now properly converted to dashes