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 details)
Built Distribution
File details
Details for the file pelican-gesetze-0.1.0.tar.gz
.
File metadata
- Download URL: pelican-gesetze-0.1.0.tar.gz
- Upload date:
- Size: 15.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.10.4 Linux/5.19.0-76051900-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | bf1081f050918a3583a69b1cad0dce1087fe46f23141943a5cb9425276efa3ef |
|
MD5 | 6e796db571674188041c8703848d4800 |
|
BLAKE2b-256 | 1a19ea9ffc2c97a6b1391a7b8bf8d4e85af5f8de600529abbadeae39c83dab2b |
File details
Details for the file pelican_gesetze-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: pelican_gesetze-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.2.1 CPython/3.10.4 Linux/5.19.0-76051900-generic
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4d19d6a174c6874b11b4a2941e23ff133abee4bc1ce508660afe613aff3fac79 |
|
MD5 | 9abd8fa64b6f69ff827e1ec1d11423d4 |
|
BLAKE2b-256 | b6e8a73a9771c6e92c2578250285bff508988664d2ce2d8f4518df23ae4211f4 |