Skip to main content

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

lektor-disqus-comments-0.1.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

lektor_disqus_comments-0.1-py2-none-any.whl (3.3 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