lektor / lektor-atom

Lektor Atom plugin.
30 stars 13 forks source link

Feed enumeration, alt support #16

Open eigengrau opened 6 years ago

eigengrau commented 6 years ago

This adds support for a Jinja function/filter, “atom_feeds”, which can be used to enumerate all feeds defined in the project (“atom_feeds()”), or those relevant to the page being generated (“atom_feeds(for_page=this)”).

This is convenient, e.g., to define a generic site header which automatically displays a “subscribe” link on those pages which generate feeds.

eigengrau commented 6 years ago

For a project I needed “real” support for feed alternatives, so I came up with 6c3241d. This replaces field names by template expressions, so that we can localize things we otherwise can’t. For convenience, we also support alt-specific config values, so there’s no need to copy-paste feed settings.

goanpeca commented 5 years ago

:-p @nixjdm ?

jcharaoui commented 2 years ago

I've rebased and submitted a PR to the author of this feature. If you're still interested in merging this and would like a new PR with the rebased code, let me know!

https://github.com/eigengrau/lektor-atom/pull/1