A custom Ghost theme for ivanrobles.pro
Ghost uses a simple templating language called Handlebars for its themes.
The Sharmaz is based on the ghost starter theme wich use Rollup, so I added TailwindCSS for the styles.
The main files are:
default.hbs- The main template fileindex.hbs- Used for the home pagepost.hbs- Used for individual postspage.hbs- Used for individual pagestag.hbs- Used for tag archivesauthor.hbs- Used for author archives
To see realtime changes during development, symlink the sharmaz theme folder to the content/themes folder in your local Ghost install.
ln -s /path/to/the-sharmaz /ghost/content/themes/the-sharmazRestart Ghost and select the sharmaz theme from Settings.
From the theme's root directory, install the dependencies:
yarn installFrom the sharmaz theme folder, start development mode:
yarn devChanges you make to your styles, scripts, and Handlebars files will show up automatically in the browser. CSS and Javascript will be compiled and output to the built folder.
Press ctrl + c in the terminal to exit development mode.
Compile your CSS and JavaScript assets for production with the following command:
yarn buildUse gscan to test your theme for compatibility with Ghost:
yarn testCreate a zip archive:
yarn zipCopyright (c) The Sharmaz - Released under the MIT license.
