re-plugin-pack

Description: Plugin pack for the `render-engine` static site generator.


As I started contributing to render-engine and making this site I realized that if there were certain things I wanted I would have to do them myself. So I figured out how to get plugins to work and I wrote a couple of them.

LatestEntries

The first one is called LatestEntries and it gives a page a set of information on the latest entries in any number of Collection groups. For example this site has 3 of those groups:

I wanted to have a way to show the most recent entries for the blog and TIL on my home page but that functionality just doesn't exist natively in render-engine. So I wrote a plugin that handles it. If you go to the homepage you can see the 5 most recent blog entries and 3 most revent TIL entries. That is done with the LatestEntries plugin.

NextPrevPlugin

The other major functionality I wanted to have on my site was to have links to the previous and next posts in some collections be shown on the bottom of every entry. Again, this is something I want that goes beyond the scope of what the base engine should do. Time for another plugin. This is the NextPrevPlugin. It gives a page in the collection access to specific data about the pages before and after it in the collection to populate those links. You can see it in action in entries in my blog or TIL.

Drafts

I sometimes find that I'm in the process of working on something and need to take a break. Or maybe what I'm doing isn't quite ready and needs some more time. Or maybe I want to get an announcement ready ahead of time and just be able to trigger it when the time has come. Introducing Drafts, a plugin that will let you mark a post as a draft so you can edit but not have it show up until you're ready for it.


My pack of render-engine plugins is available on PyPI. If you have an idea for a plugin you would like to see, feel free to open an issue asking for it in the repo.


Repo: https://github.com/brass75/re_plugin_pack

Find it on PyPI: https://pypi.org/project/re-plugin-pack/