Skip to content

Customize content #75

@oliverpool

Description

@oliverpool

I use this plugin to generate an atom feed (https://www.dpsg-toelz.de/aktuell.xml from https://codeberg.org/dpsg-toelz/homepage/src/branch/main/eleventy.config.js#L17).

The main picture is set in the frontmatter of every blog post and I would like to display this picture in the rss feed as well (before the text for instance).

I couldn't find a way (editing post.page.rawInput does not work and overriding the post.content getter fails). How should I proceed?


Ideas:

  • add some "content-processing" options to the plugin, to be able to mangle it as needed
  • add a new type (in addition to atom, rss, json): if this is a function, call this function with the same arguments ({ stylesheet, collection }) and used the returned value as template.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions