Skip to main content

HTML5 theme for django-blog-zinnia

Project description

Zinnia-theme-html5 is a python package providing HTML5 templates for django-blog-zinnia.

Installation

First of all you need to install and configure django-app-namespace-template-loader into your project.

Then once Zinnia is installed on your Django project and this package installed on your PYTHON_PATH, simply register the zinnia_html5 application in the INSTALLED_APP section of your project’s settings.

Now Zinnia is HTML5 ready.

HTML5 Validation

If you want to have strict HTML5 documents and pass the validation tests you must register the DraftHTML5ValidatorCleaner middleware to clean the templates of the not already supported attributes or relationships.

MIDDLEWARE_CLASSES = (
    ... # Your middlewares
    'zinnia_html5.middleware.DraftHTML5ValidatorCleaner',
    )

The problem is that HTML5 is still in draft, and some microformats are not already allowed by the on-line validators.

Instead of rewriting all the Zinnia’s templates it’s easier to add this middleware and disable it when the HTML5 specifications will be completed and the on-line HTML5 validators up-to-date.

Project details


Download files

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

Source Distribution

zinnia-theme-html5-0.3.2.tar.gz (11.3 kB view details)

Uploaded Source

File details

Details for the file zinnia-theme-html5-0.3.2.tar.gz.

File metadata

File hashes

Hashes for zinnia-theme-html5-0.3.2.tar.gz
Algorithm Hash digest
SHA256 193e528efcdd10b2c2e71490244f736864d7542f3ff9fea3aa0baeb200e5d1dd
MD5 08b3fc9d98729f328184a35cad3d4c4f
BLAKE2b-256 2397555c78707cb75b2bc956bab2e8edb63c36ffe00f65f04843bab35a7fe436

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page