Skip to main content

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 and url 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.

Release files for lektor-disqus-comments 0.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lektor-disqus-comments 0.4.1
File Size Uploaded
lektor-disqus-comments-0.4.1.tar.gz 3.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for lektor-disqus-comments 0.4.1
File Interpreter ABI Platform
lektor_disqus_comments-0.4.1-py2.py3-none-any.whl Python 3, Python 2 none any Details

Total release size: 8.0 kB

Release files / lektor-disqus-comments-0.4.1.tar.gz

Download URL lektor-disqus-comments-0.4.1.tar.gz
Size 3.7 kB
Tags Source
SHA-256 checksum
How to use checksums
d36edb4e6131fa583f40fa18fc45e849c05e098e290aadfc609d0a31d2d26c7a
BLAKE2b-256 checksum
How to use checksums
61097595da16471e1626d5012f3483b2568aee7981b85a5a67a96fb0023c10ac
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / lektor_disqus_comments-0.4.1-py2.py3-none-any.whl

Download URL lektor_disqus_comments-0.4.1-py2.py3-none-any.whl
Size 4.3 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
8d48c6b370862a6488a1742a53ae62e0562a8cbd3ccd03bab89bdb7244998975
BLAKE2b-256 checksum
How to use checksums
f71d7e3a116a9675614c17147ef9e8bf228b31997c8b08626f869dd02f4e60c4
Upload date
Uploaded using Trusted Publishing?
What is 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

Release history Release notifications | RSS feed

This release

0.4.1 This release

2 release files

0.4

1 release file

0.3

1 release file

0.2

2 release files

0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page