lektor-website/content/docs/themes/contents.lr

26 lines
1.0 KiB
Plaintext
Raw Normal View History

2017-10-26 00:22:17 +02:00
title: Themes
---
sort_key: 95
---
summary: A quick introduction into Lektor Themes.
---
body:
!!!! Lektor theme support is new. It should be considered
unstable and could change in the future.
2017-10-26 00:22:17 +02:00
!! *New in Lektor Version 3.1:* Themes did not exist in earlier Lektor versions.
Lektor provides a themes system to easily implement, reuse, and distribute themes.
This allows you to use assets, templates, models, and / or flowblocks built into the theme.
Themes are created by the Lektor community.
2017-10-26 00:22:17 +02:00
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.