lektor-website
lektor-website copied to clipboard
Add Lektor Themes list page
I imagine another top-level tab on the site similar to https://www.getlektor.com/showcase/, just as I added for /plugins. I (or someone else) could definitely write another plugin just for getlektor.com that pulls in data from https://github.com/lektor/lektor-themes on build to populate pages. I did something similar to build the pages for the plugins, where I pull data from PyPI's public JSON API to build plugin pages. https://github.com/lektor/lektor-website/tree/master/packages/project-data
I had this in mind when I wrote in the lektor-themes readme that screenshots should be placed in the /images dir in the theme repos, hoping that we could pull in those images during build time programmatically.
I could probably do this if no one else wants to :smile:
Great! go ahead @Andrew-Shay
Thanks @Andrew-Shay! And so you don't have to search for it too much, the way to enable the new base page would be to uncomment this: https://github.com/lektor/lektor-website/blob/master/databags/menu.ini#L17-L19
Side note: the way the /plugins pages are built currently, they query PyPI on every build. Preferably this is improved to save / cache the data to not query PyPI on successive builds. It doesn't matter for the deployed build on Travis-CI, but all of those calls add up and make builds slow in development. It would be great if only the first build in development was slow. Bonus points if you can do something similar for the /themes pages. :)
This feature is just about finished. It's based off the Showcase template for consistency. Just waiting on https://github.com/lektor/lektor/issues/599 to make the final changes.
@Andrew-Shay, unblocked? @https://github.com/lektor/lektor/issues/599#issuecomment-426060404
@nixjdm I think so