All Projects → switchbitio → brage-ghost-theme

switchbitio / brage-ghost-theme

Licence: MIT License
A Ghost theme built with Gulp

Programming Languages

CSS
56736 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to brage-ghost-theme

Prometheus
🌈 A Clean And Modern Ghost Theme with Progressive Web Apps (PWA)
Stars: ✭ 94 (+113.64%)
Mutual labels:  gulp, ghost-theme, ghost-blog
aesto
Free Ghost theme with membership support. Minimal content focused design with multi author supported.
Stars: ✭ 31 (-29.55%)
Mutual labels:  gulp, ghost-theme, ghost-blog
Next Cms Ghost
Publish flaring fast blogs with Next.js and Ghost CMS
Stars: ✭ 107 (+143.18%)
Mutual labels:  ghost-theme, ghost-blog
Fizzy Theme
🥤A tasty blogging theme for Ghost.
Stars: ✭ 194 (+340.91%)
Mutual labels:  ghost-theme, ghost-blog
mention-ghost-theme
Mention theme for Ghost blogging platform, built by https://vanila.io
Stars: ✭ 69 (+56.82%)
Mutual labels:  ghost-theme, ghost-blog
Skywalker
A material design theme for ghost blog 🙈🌈🍇
Stars: ✭ 80 (+81.82%)
Mutual labels:  ghost-theme, ghost-blog
Ghost Matery2
这是又一个采用Material Design和响应式设计的漂亮、简洁且基于Ghost博客的新主题
Stars: ✭ 87 (+97.73%)
Mutual labels:  ghost-theme, ghost-blog
Asgar
A two-column, clean and minimalist theme for @TryGhost
Stars: ✭ 22 (-50%)
Mutual labels:  ghost-theme, ghost-blog
Simply
Theme for Ghost inspired in Medium
Stars: ✭ 336 (+663.64%)
Mutual labels:  ghost-theme, ghost-blog
ghost-theme
a ghost theme
Stars: ✭ 19 (-56.82%)
Mutual labels:  ghost-theme, ghost-blog
donnie-dark
Donnie Dark is dark, responsive, customizable theme for Ghost 0.5+ blogs. Name of the theme is hats-off for a great movie.
Stars: ✭ 20 (-54.55%)
Mutual labels:  ghost-theme, ghost-blog
Buster
A responsive, clean card theme for the Ghost blogging platform.
Stars: ✭ 50 (+13.64%)
Mutual labels:  ghost-theme, ghost-blog
Practice
A clean timeline theme for the Ghost CMS
Stars: ✭ 46 (+4.55%)
Mutual labels:  ghost-theme, ghost-blog
Ghost Theme Moegi
An elegant & fresh ghost theme.
Stars: ✭ 101 (+129.55%)
Mutual labels:  ghost-theme, ghost-blog
Mapache
You can use the theme Mapache for ghost in: Blog - Magazine - Landing page - Personal page - Photographers. and in many other things
Stars: ✭ 477 (+984.09%)
Mutual labels:  ghost-theme, ghost-blog
Mnml Ghost Theme
A minimal, responsive, fast ghost blog theme with great typography. Comes with paid membership support, Disqus comments, syntax highlighting, and KaTeX for mathematics, and more.
Stars: ✭ 235 (+434.09%)
Mutual labels:  ghost-theme, ghost-blog
biron-ghost-theme
Biron Free Ghost Theme
Stars: ✭ 43 (-2.27%)
Mutual labels:  ghost-theme, ghost-blog
Caffeine Theme
A minimalist, Material Design inspired Ghost Theme for optimal desktop and mobile experiences
Stars: ✭ 300 (+581.82%)
Mutual labels:  ghost-theme, ghost-blog
undefined-ghost-theme
A minimal, Ghost 5.0-ready, membership-enabled starter theme for the Ghost blogging platform.
Stars: ✭ 76 (+72.73%)
Mutual labels:  ghost-theme, ghost-blog
starter
A clean theme for Ghost blog
Stars: ✭ 26 (-40.91%)
Mutual labels:  ghost-theme, ghost-blog

Brage Theme Screenshot

Live demo at brage.switchbit.io

Brage Ghost Theme

A Ghost theme built using Gulp.

This theme can be used as is or as a seed project for developing your own Ghost theme using Gulp to simplify and speed up development.

Please read the following blog series for a more detailed description: blog.switchbit.io/tag/ghost-tag

To make developing a custom Ghost theme as seamless as possible, you would expect the following:

  • Run a local instance of Ghost without any external dependencies
  • Reload Ghost when changes in .hbs templates and .js files are made
  • Inject changes to .scss files with Browsersync
  • Development dependencies through npm and bower

To enable this, we use Gulp to run a local instance of Ghost with configuration to watch for changes in the above files and automatically reload when necessary. As well as the usual suspects for optimising our assets.

Thanks to

The layout of the Gulp tasks as well as some of the configurations are inspired by Stefan Imhoff's "Introduction to Gulp.js 15: Performance Improvements with WebP and Gzip"

Using the Brage theme as is

Only Node 6.x is supported.

By building a release

If you simply want to use the Brage theme for your own Ghost blog then you can download the latest release or if you prefer building it yourself, clone this repository and run:

$ npm install
$ bower install
$ gulp dist && gulp zip

Then upload the brage-ghost-theme.zip to your Ghost Pro instance or install on your own hosted Ghost instance.

By running it with Docker Compose

Blog URL

You must specify the blog URL by setting the BLOG_URL environment variable. For example, if you would like a blog URL of http://my-blog.com, then BLOG_URL must be set to http://my-blog.com.

If you choose to run your Ghost blog as Docker containers, you can stand up a complete production instance of Ghost, with the Brage theme installed, by running the following:

# You MUST have docker-compose > 1.4.0 installed
$ gulp ghost:docker

This will use docker-compose to build the images and stand up the following containers:

  • brage_content - A volume container that will contain your Ghost content, theme files etc.
  • brage_ghost - Container that will contain your Ghost instance. This is separated from your blog content so that you can upgrade Ghost versions or configurations without losing your content.
  • brage_nginx - An nginx container pre-configured and optimised to serve your Ghost blog

You can navigate to http://localhost or the blog URL referenced by BLOG_URL to view your Ghost instance.

NOTE: You must first setup your blog by going to http://localhost/ghost and following the instructions. Once you're done setting up your blog.

By running in Docker Cloud

You can run your Brage themed Ghost instance in Docker Cloud by using the Ghost Nginx Stack and the Brage Docker image.

Make sure you have a Docker Cloud account that has a valid Cloud Provider connected. If you don't have an existing cloud provider, I recommend using Digital Ocean (note: this is a referral link).

Nginx Ghost Stack

The Nginx Ghost Stack provides the necessary platform to proxy a Ghost instance with the following features:

  • Optimised asset caching strategies
  • SSL/TLS encryption using Let's Encrypt
  • All content is served using HTTP/2 when possible

Click the button below to create and deploy a Nginx Ghost Stack.

Deploy to Docker Cloud

Brage Ghost Stack

Once you have the Nginx Ghost Stack successfully running in Docker Cloud, click the button below to create the Brage Ghost Stack, which will be proxied by the Nginx Ghost Stack.

Deploy to Docker Cloud

Before deploying the Stack make sure to provide the necessary details matching your blog for the following environment variables in the Stack file:

...

ghost:
  image: donovanmuller/ghost-with-brage-theme:0.11.1
  volumes_from:
    - ghost-content
  environment:
    - VIRTUAL_HOST=?
    - LETSENCRYPT_HOST=?
    - LETSENCRYPT_EMAIL=?
    - url=?
  restart: always

Once you've added your specific values you can click the "Create & Deploy" button. The Nginx Ghost Stack should take care of requesting and installing your certificate and configuring the Nginx proxy. After a few seconds your blog should be available at BLOG_URL.

Please see Part 5 of the Developing a Ghost theme with Gulp for a more detailed guide.

Mail configuration

By default Mailgun is used as the mail provider. Set the following environment variables (MAILGUN_USER and MAILGUN_PASSWORD) for the brage_ghost container to the correct values for your Mailgun account. You can also add these to docker/ghost/Dockerfile.

Alternatively, configure Ghost mail in docker/ghost/config-prod.js according to these instructions: http://support.ghost.org/mail. Don't forget to rebuild (this is done for you with gulp ghost:docker) your images after making any changes.

Developing your own theme

If you want to use Brage Ghost theme as a seed project to develop your own theme and assuming you have Gulp installed, install all dependencies:

$ npm install
$ bower install

Initialise Ghost for development usage

By default, Ghost uses the Casper theme but we need to replace Casper with our current theme when Ghost fires up for the first time. To do this, we need to replace the reference to Casper as the default theme in default-settings.json

Run the default Gulp task to prepare our Ghost instance (this should only be done once):

$ gulp

In addition, this also downloads any Google Fonts we have specified in fonts.list.

Developing your theme

After our Ghost instance is prepared, start it up by running:

$ gulp ghost

This will open a browser with our current theme set as the default. Note that any changes to .hbs templates or .js files will cause the Ghost instance to be restarted and the browser to be refreshed automatically. Changes to .scss files will be injected into your browser without refreshing the page.

Preparing your theme for release

You can verify that your theme will run as expected in a production instance of Ghost by running:

$ gulp ghost:production

This will run all optimisations for the theme, load a local production instance of Ghost and open a browser for final testing.

Releasing your theme

To produce a distributable zip file containing your newly minted theme run:

$ gulp dist && gulp zip

The theme .zip will be located in the dist directory. You can now upload your theme to your Ghost Pro instance or install on your self hosted Ghost instance.

License

See the LICENSE file for license rights and limitations (MIT).

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].