Pelican plugin wrapper for 'py-gesetze'
Project description
Pelican plugin for py-gesetze
pelican-gesetze
links german legal norms, dependency-free & GDPR-friendly.
Installation
It's available from PyPi using a package manager of your choice:
# Using 'pip'
pip install pelican-gesetze
# Using 'poetry'
poetry add pelican-gesetze
Getting started
Using pelican-gesetze
is straightforward: After installing it, the jinja filter gesetzify
is available:
<p class="content">
{{ page.content | gesetzify }}
</p>
Configuration
The following settings need to be prepended by GESETZE_
to work, eg for enabling full title
attributes, define GESETZE_TITLE_ATTRIBUTE = 'full'
in your settings (most likely pelicanconf.py
).
Setting | Type | Default | Description |
---|---|---|---|
DRIVER_ORDER |
`list | str` | ['gesetze', 'dejure', 'buzer', 'lexparency'] |
TITLE_ATTRIBUTE |
`str | False` | False |
CUSTOM_ATTRIBUTES |
dict |
{"target": "_blank"} |
Defines HTML attribute defaults |
For more information, see here.
Roadmap
- Update
README.md
- Add tests
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pelican-gesetze-0.1.0.tar.gz
(15.7 kB
view hashes)
Built Distribution
Close
Hashes for pelican_gesetze-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d19d6a174c6874b11b4a2941e23ff133abee4bc1ce508660afe613aff3fac79 |
|
MD5 | 9abd8fa64b6f69ff827e1ec1d11423d4 |
|
BLAKE2b-256 | b6e8a73a9771c6e92c2578250285bff508988664d2ce2d8f4518df23ae4211f4 |