Coder Social home page Coder Social logo

phantom's Introduction

Phantom

Phantom is a simple and responsive theme for Ghost. It's compatible with Ghost (0.5.2) and probably upwards, though this is the testet version.

Take a look at the live demo at: http://bartinger.at

If you're using Phantom as your theme I would love to see it. Drop me the URL at here or send me a mail

Configuration

  • Google Analytics

Edit partials/analytics.hbs and set parameters to ga('create', ...) call.

<script> (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){ (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o), m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) })(window,document,'script','//www.google-analytics.com/analytics.js','ga'); ga('create', 'UA-21512134-2', 'bartinger.at'); ga('send', 'pageview'); </script>
  • Disqus

Edit partials/disqus.hbs and set disqus_shortname.

<script type="text/javascript"> var disqus_shortname = 'bartingerat'; (function() { var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true; dsq.src = '//' + disqus_shortname + '.disqus.com/embed.js'; (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq); })(); </script> Please enable JavaScript to view the comments powered by Disqus.
  • Google Webmaster Tools

Edit default.hbs and set your content value with a tag named google-site-verification.

{{! Page Meta }}

<title>{{meta_title}}</title>
  • Sidebar

Edit partials/sidebar.hbs and fix the URLs and remove what's not needed.

Features

  • Minimalistic responsive
  • Google Analytics
  • Disqus comments
  • Icon-font (Fontello)
  • Post images1

1 I've added them to the post.hbs template to make them discoverable by social sites if someone posts the link to this blog post. Though they are hidden in the template because I wanted to keep it clean. You can enable and style them by editing _posts.scss or standalone/assets/css/main.css for standalone users.

SEO

  • Post tags as meta keywords

Development

Dependencies

  • Grunt
  • Sass
  • CSS minification
  • Deployment via rsync

Quickstart

git clone [email protected]:Bartinger/phantom.git
cd phantom
npm install
npm install -g grunt grunt-cli
bundle

Notes

Using Grunt for development run gunt dev which watches the directory and does the sass compiling. Note: Livereload extension must be installed, for it to work. I didn't include the connect middleware.

To package the theme run grunt build and publish the new generated dist directory in your ghost theme directory. Run grunt compile to package the theme in the standalone directory.

Grunt What?

Even though I highly recommend using Grunt, if you dont't know what it is and don't want to learn it (as a web developer you definitely should) you can use the standalone version. Take the standalone directory and copy it to your theme directory. It contains the whole theme with unminified css, ready for you to be edited.

This theme is based on the default theme casper. Desktop Mobile

Copyright & License

Copyright (C) 2014 Dominic Bartl - Released under the MIT License.

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

phantom's People

Contributors

acgessler avatar alistra avatar dominicbartl avatar hovsater avatar ktoso avatar mattdeluco avatar sdepold avatar

Watchers

 avatar  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.