Skip to main content

Lektor plugin that adds a slugify Jinja filter.

Project description

lektor-slugify

This is a Lektor plugin that provides a simple template filter that transforms a (unicode) string into a slug.

Usage: {{ var|slug }}

Advanced usage: The |slug filter can also accept keyword arguements that are passed to python-slugify. That means you have the option of doing, for example, {{ var|slug(lowercase=False) }} to preserve case sensitivity.

This is a simple use of the Python package python-slugify.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
lektor_slugify-0.4-py3-none-any.whl (3.2 kB) Copy SHA256 hash SHA256 Wheel py3
lektor-slugify-0.4.tar.gz (1.7 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page