You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

lektor-disqus-comments

Package Overview
Dependencies
Maintainers
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

lektor-disqus-comments

Lektor plugin to add Disqus comments to a website.


Maintainers
5

Readme

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.

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc