Skip to content

Customization

Sébastien Moulène edited this page Oct 17, 2023 · 5 revisions

To replace or add style, structure, content…

SASS

A _variables file in the abstracts folder allows to add bootstrap variables. Available list on Github

File override

The sass files override is possible by keeping the same tree structure and allows to overwrite the style of the theme to replace it with a specific style.

Example :

abstract
  _variables.sass
components
  _author.sass
main.sass

File merge

The SASS files merge allows you to add style to that of the theme. To merge SASS files, it is necessary to reproduce the same tree structure in a folder called site and to indicate the files in main.sass.

Example :

site
  components
    _author.sass
main.sass

HTML

The HTML files override is possible by keeping the same tree structure.

Example :

layout
  partial
    posts
      item.html

Decap CMS

4 settings files are available to customize admin. See originals settings files here:

static
  admin
    app
      settings
        available-blocks.js
        available-collections.js
        available-sections.js
        available-languages.js

You could add some specifics blocks.

static
  admin
    app
      blocks
        …

Or specifics collections.

static
  admin
    app
      content
        …