Lektor plugin to add Creative Commons license to your pages
Project description
Lektor Creative Commons
Lektor plugin to add Creative Commons license to your pages
Usage
On your templates use:
<div class="license">{{ render_cc_license(type, size, template, caller) }}</div>
type
is astring
with the license type (e.g.:'by'
,'by-sa'
,'by-nc-sa'
).size
is an optional parameter with the size'normal'
or'compact'
. It defaults to'normal'
.template
is an optional parameter with the template'full'
,'image-only'
or'text-only'
. It defaults to'full'
.caller
is an optional parameter that you can pass an callable to mount your own template.
Example
<div class="license">{{ render_cc_license('by-sa') }}</div>
Internationalization support
This plugin has support to internationalization, and changes it language based on .lektorproject
file.
The Current supported locales are:
- en
- pt_BR
Any other locale will default to en
(English).
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
Built Distribution
Close
Hashes for lektor-creative-commons-0.4.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | eb648ce8bc9b40e0c1485c3cbd27862400fc65dc7e74e4290a5b08bae77dabbb |
|
MD5 | e6203e594c1d0c1bed9d3cffb6120b24 |
|
BLAKE2b-256 | 189e4284be8901fed19dc0293039f8455f645caf7280249b749c096da302d2b4 |
Close
Hashes for lektor_creative_commons-0.4.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | df55f1aaec17e1fd9a52de310732a314b5b13b396459cf9f3f1bb0af97976bc2 |
|
MD5 | 5a974b11107c1c6a9db035d0f025e6ad |
|
BLAKE2b-256 | 5bf2be0eb00076bbceb265634fb04aa6842892701c14ac95c0360180200105e5 |