terminal labs
Python Mercenaries
in
t
p
f

Lektor Tutorial - pt. 4

Content Format

written by Joseph Nix on 2017-04-26

Content files are UTF-8. Just text. This means

The fields are defined by the model associated with the page, and data is typically determined by user interaction within the admin (CMS). Fields are separated by dashes, and follow the format key: value. Quickstart's content file for the page first-post is found at content/blog/first-post/contents.lr, and comes with the following data preloaded.

title: Hello Website
---
pub_date: 2017-04-26
---
author: Dev
---
body:

This is an example blog post.  Not much here but that's not the point :)

System fields appear with an underscore prefixed to the key name, such as in content/blog/contents.lr:

_model: blog

« Previous | Lektor Tutorial - pt. 4 | Next »