Skip to content

Commit

Permalink
Merge pull request #11 from MrBoolean/master
Browse files Browse the repository at this point in the history
Add build steps
  • Loading branch information
starburst1977 committed Jan 23, 2014
2 parents 36f40cd + 15faa8f commit 3d4a5de
Show file tree
Hide file tree
Showing 57 changed files with 131 additions and 7,227 deletions.
3 changes: 3 additions & 0 deletions .bowerrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"directory": "vendor"
}
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
.DS_Store
.git
.svn
vendor
node_modules
28 changes: 28 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
ifdef SystemRoot
WINDOWS = 1
endif

ifdef WINDOWS
NODE = node
NPM = npm
BOWER = .\node_modules\.bin\bower.cmd
else
NODE = node
NPM = npm
BOWER = $(NODE) ./node_modules/.bin/bower
endif

NODE_ENV = production

install:
- $(NPM) install
- $(BOWER) install

release:
mkdir -p dist
@while [ -z "$$VERSION" ]; do \
read -r -p "Version name: " VERSION;\
done && \
zip "./dist/readium-$$VERSION.zip" -x /dist/* -r ./

.PHONY: install
15 changes: 12 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Readium Ghost Theme 1.2

# Readium Ghost Theme
Hey there, my name is Sven Read. I love building themes & I love [Ghost](https://en.ghost.org). And I always wanted to have a possibility to blog that's similar to Medium.com,
but without the drawbacks (like no control over your data & loss of all rights to your content, etc.). So I made myself a theme for Ghost
that takes the good parts from Medium.com & mixes them with stuff I would do differently. And this is what I ended up with.
Expand All @@ -8,6 +7,16 @@ You can have a look at it here: [http://www.svenread.com/readium-ghost-theme/](h

Don't forget to check out my other themes [Marisa](http://crtv.mk/eOTs) & [Chiara](http://crtv.mk/tSYt).

## Install
### Requirements
- node >= 0.8.x

### Use dist files
Upload the latest `readium-VERSION.zip` file to your ghost instance and restart it. Choose readium and enjoy!

### Compile
Run `make` and do your changes. Once you are done, run `make release`. Enter the required data and pick the created zipfile out of your dist/ directory.

## Features
- Mobile-First Design Aproach
- Fully Responsive layout
Expand All @@ -26,7 +35,7 @@ Don't forget to check out my other themes [Marisa](http://crtv.mk/eOTs) & [Chiar
- Theoretically ready for multiple users (Here is how to [hack Ghost for Mulit-User](http://lifewiththemacks.com/multi-user-support/)

## If your Ghost blog is self hosted:
1. Copy the contents of the .zip file into /content/themes/.
1. Copy the contents of the .zip file into /content/themes/.
2. You need to restart your Ghost instance. After that you can switch themes inside your Ghost admin (http://your.domain.com/ghost/settings/general/). Scroll down and choose "Chiara" from the theme dropdown.
3. Now you can customize your logo, langing page image (if you choose to have one), as well as user images and texts to fit the theme.
4. Have fun.
Expand Down
18 changes: 0 additions & 18 deletions assets/js/index.js

This file was deleted.

6 changes: 0 additions & 6 deletions assets/js/jquery-2.0.3.min.js

This file was deleted.

40 changes: 40 additions & 0 deletions assets/js/readium.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
'use strict';

require.config({
baseUrl: 'assets/js',
paths: {
jquery: '/vendor/jquery/jquery',
menu: '/vendor/jQuery.mmenu/src/js/jquery.mmenu.min',
hljs: '/vendor/highlightjs/highlight.pack'
},
shim: {
hljs: {
exports: 'hljs'
},
menu: {
deps: ['jquery'],
exports: 'jQuery.fn.mmenu'
}
}
});

require(['jquery', 'hljs', 'menu'], function($, hljs) {
var cover = $('img[alt="img-post-cover"]'),
container = $('#img-post-cover');

hljs.initHighlighting();

$('#side-menu').mmenu({
classes: 'mm-slide'
});

if (cover.length > 0) {
container = $('#img-post-cover');
container.css('background-image', 'url(' + cover.attr('src') + ')');

cover.remove();
return;
}

container.remove();
});
31 changes: 0 additions & 31 deletions assets/mmenu/src/css/addons/jquery.mmenu.counters.css

This file was deleted.

11 changes: 0 additions & 11 deletions assets/mmenu/src/css/addons/jquery.mmenu.dragopen.css

This file was deleted.

94 changes: 0 additions & 94 deletions assets/mmenu/src/css/addons/jquery.mmenu.header.css

This file was deleted.

41 changes: 0 additions & 41 deletions assets/mmenu/src/css/addons/jquery.mmenu.labels.css

This file was deleted.

54 changes: 0 additions & 54 deletions assets/mmenu/src/css/addons/jquery.mmenu.searchfield.css

This file was deleted.

Loading

0 comments on commit 3d4a5de

Please sign in to comment.