-
Notifications
You must be signed in to change notification settings - Fork 5
Content Editing
We provide almost all your data in the /data
directory. There are general sections of the website in YAML files and some sections in Markdown files.
Our YAML files support rich-text format where it's necessary. You can use any markdown formatting tools, i.e. paragraphs, links, lists, images and even heading when it's necessary.
We support absolute and named routes. The difference is between notation and use cases. Generally, absolute route look like /some/route
and named one – ~some-name
(starting from ~
).
Named routes are implemented to have shorthands for some URL and have flexible routing of website pages. All the named routes are described in core.routes.yml
file in the notation route-name: /real/path/to/page
.
You can use named routes everywhere in markdown texts (in the .yml
and .md
files).
Also, we have to to special named routes – ~static
and ~images
, which are described below.
All content images are located in /static/images
. To add a new one just upload it there. Images are accessible via special route ~images
, e.g. to link a logo.svg
(/static/images/logo.svg
) use ~images/logo.svg
.
All other static assets from the directory /static
are accessible via general ~static
route. That means, images also are accessible by ~static/images/
route, previous route is just a shorthand. To add any other static file put it into /static
directory.