<li><p><aclass="github-button"href="https://github.com/humrochagf/lektor-creative-commons"data-icon="octicon-star"data-size="large"data-show-count="true"aria-label="Star lektor-creative-commons on GitHub"target="_blank">Star</a></p></li>
<ahref="https://pypi.python.org/pypi/lektor-creative-commons"rel="nofollow"><imgalt="Current version at PyPI"src="https://img.shields.io/pypi/v/lektor-creative-commons.svg"></a>
<ahref="https://pypi.python.org/pypi/lektor-creative-commons"rel="nofollow"><imgalt="Downloads per month on PyPI"src="https://img.shields.io/pypi/dm/lektor-creative-commons.svg"></a></p>
<p>Lektor plugin to add Creative Commons license to your pages</p>
<li><code>type</code> is a <code>string</code> with the license type (e.g.: <code>'by'</code>, <code>'by-sa'</code>, <code>'by-nc-sa'</code>).</li>
<li><code>size</code> is an optional parameter with the size <code>'normal'</code> or <code>'compact'</code>. It defaults to <code>'normal'</code>.</li>
<li><code>template</code> is an optional parameter with the template <code>'full'</code>, <code>'image-only'</code> or <code>'text-only'</code>. It defaults to <code>'full'</code>.</li>
<li><code>locale</code> is an optional parameter that overrides the locale at function calling time.</li>
<li><code>caller</code> is an optional parameter that you can pass an callable to mount your own template. This argument is usually omitted. See the example of how to use it with the <ahref="http://jinja.pocoo.org/docs/2.10/templates/#call"rel="nofollow">Jinja call feature</a>.</li>
</ul>
<h2>Examples</h2>
<p>Simply rendering the license of your choice:</p>
<p>Notice that using the call block it injects its content as <code>caller</code> parameter to the <code>render_cc_license</code> function that skips the need of choosing a template and renders your own.</p>
<h2>Internationalization support</h2>
<p>This plugin has support to internationalization, and changes it language based on <code>.lektorproject</code> file.
The Current supported locales are:</p>
<ul>
<li>en</li>
<li>pt_BR</li>
<li>de</li>
</ul>
<p>Any other locale will default to <code>en</code> (English).</p>
Please enable JavaScript to view the <ahref="https://disqus.com/?ref_noscript"
rel="nofollow">comments powered by Disqus.</a>
</noscript>
</div>
</div>
</div>
</div>
</div>
</div>
<divclass="bottomsummary">
<divclass="container">
</div>
</div>
<footer>
<divclass="container">
<divclass="row">
<divclass="col-sm-4 icon-bar">
<ahref="https://github.com/lektor/lektor/"title="Lektor on GitHub"
><iclass="fa fa-github"></i></a>
<ahref="https://github.com/lektor/lektor/issues/"title="Report Issues for Lektor"
><iclass="fa fa-bug"></i></a>
<ahref="https://twitter.com/getlektor"title="Find Lektor on Twitter"
><iclass="fa fa-twitter"></i></a>
<ahref="https://gitter.im/lektor/lektor"title="Chat on Gitter"
><iclass="fa fa-comment"></i></a>
<ahref="https://github.com/lektor/lektor-website/tree/master/content/plugins/lektor-creative-commons/contents.lr"title="View source for this page"><iclass="fa fa-code"></i></a>
</div>
<divclass="col-sm-8">
<ahref="../../license/">License & Copyright</a> •
<ahref="../../contact/">Contact</a> •
Made with <iclass="fa fa-fw fa-heart"title="Heart"><spanhidden>Heart</span></i> in Carinthia