Merge pull request #234 from lektor/themes

Explicitly listing the things themes can bring and that they can be overridden.
This commit is contained in:
Joseph Nix 2018-07-16 15:22:28 -05:00 committed by GitHub
commit b14b5fad89
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 2 deletions

View File

@ -15,4 +15,11 @@ Lektor provides a themes system to easily implement, reuse, and distribute theme
This allows you to use assets, templates, models, and / or flowblocks built into the theme.
Themes are created by the Lektor community.
Lektor themes work like an extension of the project, allowing you to easily adopt features of the theme such as styles, models, or templates.
Lektor themes work like an extension of the project, allowing you to easily adopt features of the theme such as styles, models, or templates. In all, themes can provide:
* templates
* models
* flowblocks
* assets
Themes can provide all of these as defaults which can be overridden or extended by your project. For instance, if a theme provides a root `page.html` template, you can create other templates that `{% extends "page.html" %}`, or you could override the theme's `page.html` by providing your own in your project's normal `templates/` directory.

View File

@ -6,7 +6,7 @@ summary: Explains how to install Lektor themes.
---
body:
For installing a theme you just need to copy it to the `themes/` folder
For installing a theme you just need to copy it to the `themes/` folder. Create the `themes/` folder if it does not already exist.
```
project