mirror of
https://github.com/lektor/lektor-website.git
synced 2025-04-03 00:45:37 +02:00
Mentioned UTF-8 as encoding
This commit is contained in:
parent
96af7af44a
commit
75b713d758
@ -64,9 +64,9 @@ can be overridden in the content file with the `_template` field.
|
|||||||
## Content File Format
|
## Content File Format
|
||||||
|
|
||||||
So now it's time to talk about the content file. The content file is just a
|
So now it's time to talk about the content file. The content file is just a
|
||||||
text file with the `.lr` extension. It can be edited with any text editor
|
UTF-8 encoded text file with the `.lr` extension. It can be edited with any
|
||||||
that supports UTF-8 as character encoding. This file consists of multiple
|
text editor that supports UTF-8 as character encoding. This file consists of
|
||||||
data fields according to the model. The format is very simple:
|
multiple data fields according to the model. The format is very simple:
|
||||||
|
|
||||||
```
|
```
|
||||||
_model: page
|
_model: page
|
||||||
|
@ -14,9 +14,9 @@ easier later to generate beautiful looking HTML.
|
|||||||
|
|
||||||
Models are the blueprints for your pages. They define which fields exist and
|
Models are the blueprints for your pages. They define which fields exist and
|
||||||
what goes into them. Models are stored in the `models` folder in your project
|
what goes into them. Models are stored in the `models` folder in your project
|
||||||
and are basic INI files. Models can have any name but if no model has been
|
and are basic UTF-8 encoded INI files. Models can have any name but if no
|
||||||
explicitly selected, the model with the name `page` will be used. So having
|
model has been explicitly selected, the model with the name `page` will be
|
||||||
a model with that name is always a good idea.
|
used. So having a model with that name is always a good idea.
|
||||||
|
|
||||||
Here is an example of a very basic model (`models/page.ini`):
|
Here is an example of a very basic model (`models/page.ini`):
|
||||||
|
|
||||||
|
@ -6,7 +6,8 @@ body:
|
|||||||
|
|
||||||
The project file holds the main configuration of the project and is used to
|
The project file holds the main configuration of the project and is used to
|
||||||
identify the project for the user interface. The project file is an INI file
|
identify the project for the user interface. The project file is an INI file
|
||||||
and the minimal content is the name of the project:
|
(UTF-8 encoded like everything else in Lektor) and the minimal content is the
|
||||||
|
name of the project:
|
||||||
|
|
||||||
```ini
|
```ini
|
||||||
[project]
|
[project]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user