No description, website, or topics provided.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENSE
MANIFEST.in
README.md
lektor_markdown_excerpt.py
setup.py

README.md

lektor-markdown-excerpt

This plugin adds filter for Markdown body excerpt.

Enabling the Plugin

To enable the plugin run this command:

$ lektor plugins add markdown-excerpt

In Templates

Plugin provides the |excerpt filter that can be used to render first paragraph of Markdown:

{{ post.body|excerpt }}

It takes one optional argument which is the separator for the excerpt:

{{ post.body|excerpt:'\n\n##' }}