Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

meditation

version downloads license

A deep and refined theme for the Ghost blog engine.

preview

You can see a demo in my own blog.

Features

  • Responsive
  • QRCode share
  • Social share buttons
  • Focus on reading experience (base on typo.css)
  • Source code highlight (base on highlight.js)

Installation

  1. Download the latest version from release page;
  2. Unzip into path/to/your/ghost/content/themes folder;
  3. Activate mediation in the Ghost General settings.

Configuration

You can configure share buttons and copyright information with $meditationTool by the Ghost code injection feature:

Write configuration code in Ghost Admin > Settings -> Code Injection -> Blog Footer:

<script>
  $meditationTool.setShareButtons(['FACEBOOK', 'TWITTER'])
                 .setCopyright('<p>Author: PeachScript</p>');
</script>

$meditationTool

methods

setShareButtons

Configure share buttons in the post page. Support the following enumeration values:

Name Meaning
DOUBAN Add the Douban share button
WEIBO Add the Weibo share button
RENREN Add the Renren share button
QZONE Add the QQ Zone share button
GPLUS Add the Google Plus share button
FACEBOOK Add the Facebook share button
TWITTER Add the Twitter share button
QRCODE Add the QRCode button to share by mobile phone

Usage:

// Passing an array to set share buttons
$meditationTool.setShareButtons(['GPLUS', 'FACEBOOK']);

// You also can passing a two-dimensional array to render multi-line share buttons
$meditationTool.setShareButtons([
  ['FACEBOOK'],
  ['GPLUS', 'TWITTER'],
  ['DOUBAN', 'WEIBO', 'RENREN']
]);

setCopyright

Configure copyright information in the post page. Support HTML tags.

Notice: For security you only can call the method once in synchronized manner.

Usage:

$meditationTool.setCopyright('<p>Any code you want to insert to the copyright label</p>');

Development setup

# install dependencies
npm install

# start webpack-dev-server
npm run dev

Thanks to

  1. typo.css
  2. highlight.js
  3. normalize.css
  4. qrcodejs
  5. webpack
  6. uno-zen

License

MIT License

Copyright (c) 2017 PeachScript

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.

You can’t perform that action at this time.