UNKNOWN
Project description
# lektor-disqus-comments
This plugin adds support for Disqus comments to Lektor. Once the plugin is enabled a render_disqus_comments function which can render a disqus comment box.
## Enabling the Plugin
To enable the plugin add this to your project file:
`ini [packages] lektor-disqus-comments = 0.1 `
## Configuring the Plugin
The plugin has a config file that is needed to inform it about your website. Just create a file named disqus-comments.ini into your configs/ folder and configure the shortname key with the name of your disqus community:
`ini shortname = YOUR_SHORTNAME `
## In Templates
Now you can add a discussion box to any of your templates by just using the render_disqus_comments function. Just calling it is enough to get the comment box:
`html <div class="comments">{{ render_disqus_comments() }}</div> `
Optionally the function accepts two arguemnts: identifier and url to override the defaults. For more information have a look at the disqus widget documentation.
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
Built Distribution
Hashes for lektor-disqus-comments-0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 58f18a6abdf2182d92a34799d0591291e9c417cfaa0df6f0d7ce67774eb57a1f |
|
MD5 | 053983e3deec31d9abc8f85180c073bb |
|
BLAKE2b-256 | f6f66f0362434ef646f96b17d501558034473e5f68385d7e3a66b1963befbe6c |
Hashes for lektor_disqus_comments-0.1-py2-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 147a14494f261173ab04ec5c8a6af016050d87a900de7e053759dfdf037bd219 |
|
MD5 | 435b7d7c1609e3cbd697e731fd05b777 |
|
BLAKE2b-256 | 3a31786e3fc96fd69902b35e6b93f29c5c67129f2d60fcea72522338f5767f49 |