semvec/pypi-packages huggingface dataset:
lektor-disqus-comments 0.4.1
Lektor plugin to add Disqus comments to a website.
License: BSD
Keywords: Lektor plugin static-site blog Disqus comments

# 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:

```shell
$ 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:

```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 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.
lektor-markdown-header-anchors 0.3.1
Lektor plugin that adds anchors and table of contents to markdown headers.
License: BSD
Keywords: Lektor plugin markdown static-site blog toc table-of-contents anchors headers

# lektor-markdown-header-anchors

This plugin extends the markdown support in Lektor in a way that headlines
are given anchors and a table of contents is collected.

## Enabling the Plugin

To enable the plugin run this command:

```shell
$ lektor plugins add markdown-header-anchors
```

## In Templates

Within templates it becomes possible to access the `.toc` property of
markdown data.  It's a list where each item has the following attributes:

* `anchor`: the name of the anchor
* `title`: the title of the headline as HTML
* `children`: a list of headers below that header

Example rendering:

```jinja
<h4>Table Of Contents</h4>
<ul class="toc">
{% for item in this.body.toc recursive %}
  <li><a href="#{{ item.anchor }}">{{ item.title }}</a>{%
   if item.children %}<ul>{{ loop(item.children) }}</ul>{% endif %}</li>
{% endfor %}
</ul>
```