Wtower / django-ninecms

Nine CMS is a simple Django app to manage content. Users can create content and publish it to various paths.
BSD 3-Clause "New" or "Revised" License
42 stars 6 forks source link

Replace _ with - in classes context variable #64

Closed Wtower closed 2 years ago

Wtower commented 8 years ago

https://github.com/Wtower/django-ninecms/blob/v0.6.0/ninecms/utils/render.py#L49

After slugify, add a .replace('_', '-') as in line 87 so that css classes do not contain underscores. This happens particularly when a page type contains underscore.

Make a note as this may break existing css.

Starting from v0.5.0, all non-backwards compatible changes will get a new minor number, leaving the revision number for all other releases.