mirror of
https://github.com/getpelican/pelican.git
synced 2025-10-15 20:28:56 +02:00
Expose preserve_case option from slugify
This commit is contained in:
parent
97fe235e60
commit
bd699d34e8
5 changed files with 42 additions and 12 deletions
|
|
@ -628,6 +628,12 @@ corresponding ``*_URL`` setting as string, while others hard-code them:
|
|||
in auto-generated slugs. Otherwise, unicode characters will be replaced
|
||||
with ASCII equivalents.
|
||||
|
||||
|
||||
.. data:: SLUGIFY_PRESERVE_CASE = False
|
||||
|
||||
Preserve uppercase characters in the slugs. Set ``True`` to keep the
|
||||
uppercase characters in the ``SLUGIFY_SOURCE`` as is.
|
||||
|
||||
.. data:: SLUG_REGEX_SUBSTITUTIONS = [
|
||||
(r'[^\\w\\s-]', ''), # remove non-alphabetical/whitespace/'-' chars
|
||||
(r'(?u)\\A\\s*', ''), # strip leading whitespace
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue