Lektor plugin to add Disqus comments to a website.
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:
$ lektor plugins add lektor-disqus-comments
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:
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:
<div class="comments">{{ render_disqus_comments() }}</div>
Optionally the function accepts a few arguemnts:
identifier
andurl
can be used to forcefully override the automatically detected defaults.title
can be used to set a title for the discussion that overrides the title that disqus takes from the page's title tag otherwise.category_id
sets the category id. Look at the disqus documentation for more information.
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
File details
Details for the file lektor-disqus-comments-0.4.1.tar.gz
.
File metadata
- Download URL: lektor-disqus-comments-0.4.1.tar.gz
- Upload date:
- Size: 3.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d36edb4e6131fa583f40fa18fc45e849c05e098e290aadfc609d0a31d2d26c7a |
|
MD5 | dc15b6b6f2083423a5bfbc277b5f7048 |
|
BLAKE2b-256 | 61097595da16471e1626d5012f3483b2568aee7981b85a5a67a96fb0023c10ac |
File details
Details for the file lektor_disqus_comments-0.4.1-py2.py3-none-any.whl
.
File metadata
- Download URL: lektor_disqus_comments-0.4.1-py2.py3-none-any.whl
- Upload date:
- Size: 4.3 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.7.1
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8d48c6b370862a6488a1742a53ae62e0562a8cbd3ccd03bab89bdb7244998975 |
|
MD5 | 86279223876ac44b6298bf4085d188cd |
|
BLAKE2b-256 | f71d7e3a116a9675614c17147ef9e8bf228b31997c8b08626f869dd02f4e60c4 |