Git Product home page Git Product logo

simple-ghost-theme's Introduction

How-to

https://www.geekinsta.com/create-ghost-theme-from-scratch/

Install Ghost

npm install -g ghost-cli

Install Gscan

npm install -g gscan

Gscan theme

gscan /path/to/ghost/content/themes/casper

Creating a new theme

  • Create a new folder for the theme under content/themes and create the theme layout.
  • Create a package.json file and set metadata of the theme.
  • Add three files named default.hbs, index.hbs and post.hbs and write some code to display the blog content.
  • Restart the Ghost installation.
  • Login as Ghost admin and activate the custom theme.

Theme Templates

  • default.hbs - base template that contains the HTML markup (Outline) that exists on every page such as
  • index.hbs - It is used to display the list of posts. This template will be used if your theme does not have a tag.hbs, author.hbs or index.hbs page template.
  • home.hbs - home.hbs act as the home page of a blog. It's an optional template
  • post.hbs - template for a single post which extends default.hbs and uses the {{#post}} helper to output the post details.
  • page.hbs - optional template for static pages. If this is not specified then post.hbs will be used.
  • author.hbs - if not specified the index.hbs template is used
  • private.hbs - optional template for the password form page on password-protected publications
  • error.hbs - This theme template is used to display 404 or 500 errors that are not handled by error- or class-specific templates.
  • tag.hbs - optional template for tag archive pages. If not specified the index.hbs template is used.
  • amp.hbs - optional theme template for AMP (Accelerated Mobile Pages). If your theme doesn't provide an amp.hbs file, Ghost will use its default.

GrapesJS

GrapesJS is a multi-purpose, Web Builder Framework, which means it allows you to easily create a drag & drop enabled builder of "things". By "things" we mean anything with HTML-like structure https://www.npmjs.com/package/grapesjs

npm i grapesjs-cli
npx grapesjs-cli serve

simple-ghost-theme's People

Contributors

mishelshaji avatar sweetpopcornsimon avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.