Skip to main content

Lektor plugin to add Creative Commons license to your pages

Project description

# Lektor Creative Commons

[![License: MIT](https://img.shields.io/pypi/l/lektor-creative-commons.svg)](https://github.com/humrochagf/lektor-creative-commons/blob/master/LICENSE) [![Current version at PyPI](https://img.shields.io/pypi/v/lektor-creative-commons.svg)](https://pypi.python.org/pypi/lektor-creative-commons) [![Downloads per month on PyPI](https://img.shields.io/pypi/dm/lektor-creative-commons.svg)](https://pypi.python.org/pypi/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) }}</div> `

  • type is a string with the license type (e.g.: ‘by’, ‘by-sa’, ‘by-nc-sa’).

  • size is an opitional parameter with the size ‘normal’ or ‘compact’. Default is ‘normal’

## Example

` <div class="license">{{ render_cc_license('by-sa') }}</div> `

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

lektor-creative-commons-0.1.3.tar.gz (1.9 kB view hashes)

Uploaded Source

Built Distributions

lektor_creative_commons-0.1.3-py3-none-any.whl (3.9 kB view hashes)

Uploaded Python 3

lektor_creative_commons-0.1.3-py2-none-any.whl (3.9 kB view hashes)

Uploaded Python 2

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