Code Monkey home page Code Monkey logo

ghoststa's Introduction

ghoststa

Responsive, minimalistic, clean and content-oriented theme, inspired by GitHub. This time for Ghost.

screenshot

Features

  • Responsive
  • Code highlighting
  • Placeholder for Disqus comments (see FAQ)
  • Tag / recent posts / authors list
  • Post search (by GhostHunter)

Download

Either clone and build it yourself or download it at GitHub Releases.

Requirements

It's recommended to enable the Public API in your backend, due to the usage of the {{get}}-helper to list tags and recent posts. As soon as the Ghost development team enables the public API by default (aka "when it's not beta anymore") this will be obsolet.

FAQ

Since the disqus_thread container already exists all you need to do is to paste the universal code from disqus into your blog footer in the backend.

Important: Pasting the code into your blog footer means that Disqus is loaded on every page. Since the disqus_thread container doesn't exist on every page this can cause problems. To avoid these problems just wrap the code in an if-statement to check if the container exists

<script>
if($("#disqus_thread").length) {
  // your disqus universal code
}
<script>
  • How to add code highlighting?

Code Highlighting is enabled by default and powered by Prism.

  • How does the search engine work?

See GhostHunter.

Development & Building

To develop or build the theme you'll need:

  • Bower
  • Grunt
  • SASS

To start developing install npm dependencies with npm install and start the default task, grunt.

Building is done by Grunt with grunt build. This task validates all scss and js files, creates and concatenates vendor files and copies bower files to its destination. Files generated by this build process are:

  • assets/css/style.css (compiled SASS)
  • assets/vendor/vendor.js (concatenated vendor JS)
  • assets/vendor/vendor.css (concatenated vendor CSS)
  • assets/fonts/* (font awesome icons)

Other tasks available are:

  • grunt validate: Validates all (scss and js) files
  • grunt clean: Cleans vendor files
  • grunt zip: Creates a zip file of the theme

During development the default task, grunt, will take care of most of your needs:

  • Reload theme on changes (with BrowserSync)
  • Compile SASS
  • Install bower dependencies (and re-build the vendor files)

The default task will also run the build task in case the autogenerated files are missing.

Credits

And @acburdine for testing!

ghoststa's People

Stargazers

shionphan avatar

Watchers

James Cloos avatar shionphan 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.