Skip to content
This repository was archived by the owner on May 12, 2019. It is now read-only.

Commit 350a639

Browse files
committed
merged with develop branch
1 parent 8b6dd00 commit 350a639

31 files changed

+336
-2048
lines changed

.bowerrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"directory": "assets/vendor"
3+
}

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
.DS_Store
22
node_modules/
3-
.sass-cache/
3+
.sass-cache/
4+
assets/vendor

Gruntfile.coffee

+42-31
Original file line numberDiff line numberDiff line change
@@ -6,66 +6,77 @@ module.exports = (grunt) ->
66
# =============
77
# SETUP
88
# =============
9-
pkg : grunt.file.readJSON './package.json'
109

11-
meta:
12-
banner : '/* <%= pkg.name %> v<%= pkg.version %>\n' +
13-
' <%= pkg.homepage %>' +
14-
' Copyright (c) <%= grunt.template.today("yyyy") %> <%= pkg.author.name %>' +
15-
' - Licensed <%= pkg.license %> */\n'
10+
pkg : grunt.file.readJSON './package.json'
11+
meta: banner = [
12+
"/**"
13+
" * <%= pkg.name %> - <%= pkg.description %>"
14+
" * @version v<%= pkg.version %>"
15+
" * @homepage <%= pkg.homepage %>"
16+
" * @author <%= pkg.author.name %> (<%= pkg.author.url %>)"
17+
" * @license <%= pkg.license %>"
18+
" */"].join("\n")
19+
1620
src:
1721
sass:
1822
main : 'assets/scss/uno.scss'
1923
files : ['assets/scss/**/*.scss']
2024
js :
21-
main : ['assets/js/index.js',
22-
'assets/js/ghostHunter.js',
23-
'assets/vendor/js/jquery.ghostHunter.min.js']
25+
main : ['assets/js/init.open.js'
26+
'assets/js/init.ghostHunter.js'
27+
'assets/js/init.readingTime.js']
28+
vendor : ['assets/vendor/ghostHunter/jquery.ghostHunter.min.js'
29+
'assets/vendor/pace/pace.min.js'
30+
'assets/vendor/reading-time/build/readingTime.min.js']
2431
css :
2532
main : 'assets/css/uno.css'
26-
vendor : ['assets/vendor/css/**/*.css']
33+
vendor : []
34+
35+
dist :
36+
css : 'assets/css/uno.css'
37+
js : 'assets/js/uno.js'
2738

2839
# =============
2940
# TASKS
3041
# =============
31-
sass:
32-
main : files: '<%=src.css.main%>' : '<%=src.sass.main%>'
3342

34-
concat:
35-
options : stripBanners: true
36-
css : src: ['<%=src.css.main%>', '<%= src.css.vendor %>'], dest: 'assets/css/uno.css'
37-
js : src: ['<%=src.js.main%>'], dest: 'assets/js/uno.js'
43+
sass :
44+
main : files: '<%=dist.css%>' : '<%=src.sass.main%>'
45+
46+
concat :
47+
options : stripBanners: true
48+
css : src: ['<%=src.css.main%>', '<%=src.css.vendor%>'], dest: '<%=dist.css%>'
49+
js : src: ['<%=src.js.main%>', '<%=src.js.vendor%>'], dest: '<%=dist.js%>'
3850

39-
autoprefixer:
40-
main : files: '<%=src.css.main%>' : '<%=src.css.main%>'
51+
autoprefixer :
52+
main : files: '<%=dist.css%>' : '<%=src.css.main%>'
4153

42-
cssmin:
43-
options : banner: '<%=meta.banner%>', report: 'gzip'
44-
main : files: 'assets/css/uno.min.css': '<%=src.css.main%>'
54+
cssmin :
55+
options : banner: '<%=meta.banner%>', report: 'gzip'
56+
main : files: '<%=dist.css%>': '<%=dist.css%>'
4557

46-
uglify:
58+
uglify :
4759
options : compress: false, banner: '<%=meta.banner%>', report: 'gzip', preserveComments: false
48-
main: files : 'assets/js/uno.min.js': '<%=src.js.main%>'
60+
main: files : '<%=dist.js%>': '<%=dist.js%>'
4961

50-
clean:
51-
cache:
52-
['.sass-cache', 'assets/scss/.sass-cache']
53-
npm:
54-
['node_modules']
62+
clean :
63+
cache : ['.sass-cache', 'assets/scss/.sass-cache']
64+
npm : ['node_modules']
5565

56-
watch:
57-
sass:
66+
watch :
67+
sass :
5868
files : ['<%=src.sass.files%>']
5969
tasks : ['css']
6070
options : livereload: true
61-
js:
71+
js :
6272
files : ['<%=src.js.main%>']
6373
tasks : ['js']
6474
options : livereload: true
6575

6676
# =============
6777
# REGISTER
6878
# =============
79+
6980
grunt.registerTask 'css', ['sass', 'concat:css', 'autoprefixer', 'cssmin']
7081
grunt.registerTask 'js', ['concat:js','uglify']
7182
grunt.registerTask 'production', ['css', 'js']

README.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66

77
**Uno Zen** is a fork of [Uno for Ghost](https://github.com/daleanthony/Uno) that provides some features missing in the original theme:
88

9-
* Some little improves in the layout grid and in the CSS style.
9+
* Improve CSS layout and use a main image for each post.
1010
* Search support by [ghostHunter](https://github.com/i11ume/ghostHunter/).
11-
* Main post image support.
12-
* Better development and production with Grunt.
11+
* Estimate the time of reading a post by [readingTime.js](https://github.com/michael-lynch/reading-time).
12+
* Added Progress bar with support for different themes by [pace](http://github.hubspot.com/pace/docs/welcome/).
13+
* Better development and production workflow with Grunt.
1314

1415
... and more and more features in the future. If you want to help visit TODO section.
1516

@@ -27,7 +28,7 @@ You can see a demo in my [blog](http://blog.kikobeats.com).
2728

2829
1) Download the last release tagged version.
2930

30-
2) Execute `npm install` for install the dependencies.
31+
2) Execute `npm install` and `bower install` for install the dependencies.
3132

3233
3) For development exec `grunt`. This provide you livereload. You need to have [SASS and bourbon](https://github.com/daleanthony/uno#development) as well.
3334

assets/css/global.css

-69
This file was deleted.

0 commit comments

Comments
 (0)