Description#
By default in the theme, it is possible to import libraries or third-party code into the generated html page, using the website configuration.
The several types of imports managed by the theme are the following ones:
Import type | Comment |
---|---|
SASS files (.sass) |
|
CSS files (.css) |
|
Javascript files (.js) |
|
Javascript modules (.js) |
|
Define third-party imports#
To define a file to import you must use the following configuration (Cf. highlighted lines below):
Define third-party imports for shortcodes#
The theme also offers the possibility to import libraries or third-party code associated with a shortcode. These files will be imported only if the shortcode is used in the current page, therefore reducing the loading time of the page.
To define a file to import, associated with a shortcode, you must use the following configuration (Cf. highlighted lines below):