Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Theme files are written in the Plate templating language. This language is HTML combined with a simple templating language. Any CSS or Javascript assets or frameworks can be used and included. By default, the Plate Grid framework is included.

Content Types

Theme Files for Content Types are structured as follows: :object_type_kind_name/:plural_name/:theme_file_name.:ext. In the case of Inline Layout components, like Elements and Sections, :theme_file_name usually is the singular name of the layout component or content type.

E.g., for Post TypesElement Types and Section Types:

Code Block
posts/pages/show.plate
posts/categories/show.plate
elements/colored_buttons/colored_button.plate
elements/paragraphs/paragraph.plate
sections/page_sections/page_section.plate
sections/background_sections/background_section.plate

...

Code Block
includes/my_include.plate
/_some_include.plate
elements/paragraphs/_some_include.plate
theme/_some_other_include.plate

 

Public files

Sometimes it is necessary to put some static file on a site, like robots.txt. You can put these files in the folder public of the theme. These files will then be directly be accessible at the path relative to the folder public.

...

If you have a file at public/robots.txt, this file will be available at "https://www.yoursite.com/robots.txt".

Emails

You can override some default emails that Plate sends out. Read more here.