lektor / lektor-website

The main lektor website.
https://www.getlektor.com/
Other
160 stars 134 forks source link

Better instructions for getting a theme to work #240

Open nixjdm opened 6 years ago

nixjdm commented 6 years ago

See https://github.com/lektor/lektor/issues/576

It is not clear enough how to begin using a theme. Namely it should be pointed out in https://www.getlektor.com/docs/themes/installing/ that themes my not be (and currently aren't) "drag and dropable." In other words, you can't simply install a theme and be done. You need to then adjust your project to make use of it, for example by removing conflicting templates or models, and which templates or models are affected are theme-dependent.

Andrew-Shay commented 6 years ago

@nixjdm Are there suggested templates/layouts, models and filenames?

For Simple Strap I have the following layouts/templates:

Would it make it easier to use themes if they all shared the same "configurations"?

nixjdm commented 6 years ago

are also common as a base, especially for Lektor projects specifically.

I feel like we could learn from and adopt some things from other site-builders in this regard. For example from Hugo, Wordpess, etc.

It's probably good to keep in mind too that the common themes will probably have templates, but a theme doesn't strictly need to. A theme could only provide assets, or models, and eventually plugins. And themes could potentially stack.