Skip to content

bancek/lektor-markdown-excerpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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##' }}

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages