We hope you find this theme useful! In this page we'll cover the folder structure, setting up your development workflow, how to compile, customize and extend the theme. We're here to help! if you get any questions please contact us at support@cedarthemes.com.
npm install gulp-cli -g
npm install
Inertia uses Gulp to automate the development workflow. With your command line on the root /Inertia directory you can use the following commands:
gulp
To stop the server and terminate the gulp command just hit CTRL + C.
gulp build
Extra tasks (optional):
gulp minifyVendor
src/partials/header.html
and src/partials/scripts.html
and update the lines.
gulp optimizeImages
dist/assets/img
folder.
Inertia uses the Gulp file include package to enable partials in HTML. This way we can re-use the most common sections that are used throughout the theme, such as: header, footer, navbar, sidebars.
Additionally, you can pass through some parameters when using partials:
title
: set an HTML page title.
classList
: set the component's classes.
classList
: set the component's classes.
logo
: set another logo img path, different from the default.
boxed (true/false)
: set the layout to be in a container or fluid.
The files mentioned in this section are located in the src/assets/scss
folder.
_user-variables.scss
: In this file you can make overrides to any Bootstrap core and Inertia variables.
_user.scss
: Use this file to add your own custom SCSS.
If you prefer not to use SCSS, you can use the theme.css
or theme.min.css
located in the dist/assets/css/
directory.
Notice: keep in mind that if you work on these files and then switch to compiling with Gulp you would lose your changes as the files would be re-generated.