Giter Site home page Giter Site logo

ricoa / ghostly Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jmartinesp/ghostly

0.0 2.0 0.0 2.56 MB

The default personal blogging theme for Ghost

Home Page: https://demo.ghost.io

License: MIT License

CSS 87.69% JavaScript 4.27% HTML 8.04%

ghostly's Introduction

Ghostly

A theme for Ghost based on the default Ghost theme, Casper.

Demo here

There's a branch for users who use ghost 0.X. The master branch is prepared for ghost 1.X

What does it provide

As it's based on Casper, the general look and feel is the same you would get with it, but we added some features that will enhance your experience using it:

  • Code syntax highlight: when writing fenced code blocks (those surrounded by backticks (```) ), you can add the language after the opening quotes, and the HTML output will be highlighted according to the language.
    • If no language is specified, the engine will try to guess it
    • Provided by Highlight.js
  • Disqus as a comment system: if you use Disqus as a comment system, you will only need to define your Disqus shortname and it will be all set.
    • The comments will be lazy-loaded only when the user clicks the "Load comments" button, so no unnecessary requests are made
  • Revamped side menu: the standard side menu felt old and incomplete. The new menu has a flat, simple style.
  • 'Reading Time' header on posts: added a simple 'reading time' header based on post length.
  • Default Home icon in case you didn't add a Blog icon.
  • Social profiles: On the lower part of the new side menu, you will be able to show links to your social profiles. Currently, the ones supported are:
    • Twitter
    • Facebook
    • Github
    • Linkedin
    • Telegram
  • Post description The description of the post is taken from the meta description (If it is).

Screenshots

Side menu

Side Menu

Reading time

Reading time

Syntax Highlight

Syntax Highlight

Comments

Comments

Why

We liked the Ghost default theme, but we thought it lacked some things, such as Syntax Highlighting or easy integration with a comment system.

How

  1. Download the latest version from here.
  2. Upload the theme folder to {GHOST_FOLDER}/content/themes/.
  3. Restart the Ghost service.
  4. Go to your Ghost admin panel, and under the General section, select the Theme.
  5. Customize it as you like.

Customization

For customizing the different options that this theme provides, you will need to go to your Ghost admin panel, open the Code Injection section, and on the Blog Header add this:

<script type="text/javascript">
  // Your variables go here
</script>

Any further modification should be made by direct editing of the source code. Feel free to do it!

Disqus

If you want to use the Disqus comment system, you will need to tell the theme which one is your Disqus shortname.

For doing so, between the script tags you put on the Blog Header section, you will need to add the following code:

var disqus_shortname = 'YOUR_SHORTNAME';

Social profiles

Those are the variables you will need to define in order to show your social profile links on the side menu:

// Github
var github_user = 'YOUR_GITHUB_USERNAME';

// Linkedin
var linkedin_url = 'YOUR_LINKEDIN_USER_LINK';

// Telegram
var telegram_channel = 'YOUR_CHANNEL_NAME'

Twitter and Facebook

Twitter and Facebook profiles will be taken from the blog defaults, defined under the General section

Example

<script type="text/javascript">
  var ga_ua = 'UA-123456-1';
  var disqus_shortname = 'MYSHORTNAME';
  var github_user = 'MYGITHUBUSER';
  var telegram_channel = 'mychannel'
</script>

ToDo

  • Update highlight.js 9.6.0 to 9.11.0
  • Change description of the post from meta description by default
  • Update jquery 1.12.0 to 1.12.4
  • Add a variable that specifies how to take a description of the post (or meta description or from the beginning of the post)
  • Add link "Fork This Theme" to footer on main page.
  • Update Casper theme from base repositary.

Copyright & License

Copyright (c) 2013-2017 Ghost Foundation - 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.

ghostly's People

Contributors

johnonolan avatar erisds avatar vertigra avatar dexafree avatar pauladamdavis avatar cobbspur avatar novaugust avatar ricoa avatar jmartinesp avatar halfdan avatar ybbuc avatar mankittens avatar lukaszklis avatar kezzbracey avatar kevinansfield avatar jitendravyas avatar jakegiltsoff avatar acburdine avatar nicdutil avatar kennwhite avatar jeremija avatar altonius avatar egdelwonk avatar willglynn avatar sergioaugrod avatar rossta avatar razzius avatar rcranganu avatar namanyayg avatar douten avatar

Watchers

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