lego/packages/xml-to-html
2019-09-04 15:24:05 +02:00
..
lektor_xml_to_html.py Clean up and update xml stream plugin 2019-09-04 14:45:18 +02:00
LICENSE Update package name 2019-09-02 18:35:56 +02:00
README Update package name 2019-09-02 18:35:56 +02:00
README.md Update README in xml plugin 2019-09-04 15:22:08 +02:00
setup.py Edit setup with url 2019-09-04 15:24:05 +02:00

Lektor XML atom feed to html

This plugin enables a way to import an atom xml feed into Lektor static website directly in the template.

Configuration

In the template where you would like to import the feed add the following:

{{ render_stream("https://blog.example.org/rss.xml")|safe }}

The plugin will add the following to your built html:

<div class="row">
  <h3>
    <a href="https://www.example.org/posts/this-is-a-post-link">
      This is a post title
    </a>
  </h3>
</div>

For each entry in your feed.