Skip to content

Commit

Permalink
ground zero
Browse files Browse the repository at this point in the history
  • Loading branch information
zutrinken committed Nov 1, 2015
0 parents commit 6e02598
Show file tree
Hide file tree
Showing 33 changed files with 3,488 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.DS_store
node_modules
bower_components
171 changes: 171 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,171 @@
module.exports = function(grunt) {
'use strict';
require('load-grunt-tasks')(grunt, {
pattern: ['grunt-*']
});

grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
config: {
'cssSrcDir': 'src/sass',
'cssTargetDir': 'css',
'jsSrcDir': 'src/js',
'jsTargetDir': 'js',
'jsDependencies': [
'bower_components/fitvids/jquery.fitvids.js',
'bower_components/highlightjs/highlight.pack.min.js',
'bower_components/nprogress/nprogress.js'
],
'jsDependenciesInitial': [
'bower_components/jquery/dist/jquery.min.js',
'bower_components/history.js/scripts/bundled/html4+html5/jquery.history.js',
'bower_components/imagesloaded/imagesloaded.pkgd.min.js',
'bower_components/masonry/dist/masonry.pkgd.min.js'
],
'cssDependencies': [
'bower_components/normalize.css/normalize.css',
'bower_components/highlightjs/styles/default.css',
'bower_components/nprogress/nprogress.css'
]
},
copy: {
dev: {
files: [{
dest: 'assets/fonts/',
src: '*',
cwd: 'src/fonts/',
expand: true
}]
},
dist: {
files: [{
dest: 'assets/fonts/',
src: '*',
cwd: 'src/fonts/',
expand: true
}]
}
},
clean: {
dist: ['assets']
},
sass: {
dev: {
options: {
includePaths: ['<%= config.cssSrcDir %>'],
sourceMaps: true
},
files: {
'assets/<%= config.cssTargetDir %>/style.css': '<%= config.cssSrcDir %>/style.scss'
}
},
dist: {
options: {
outputStyle: 'compressed'
},
files: {
'assets/<%= config.cssTargetDir %>/style.css': '<%= config.cssSrcDir %>/style.scss'
}
}
},
cssmin: {
dev: {
options: {
shorthandCompacting: false,
roundingPrecision: -1,
sourceMap: true
},
files: {
'assets/<%= config.cssTargetDir %>/dependencies.css': [
'<%= config.cssDependencies %>'
]
}
},
dist: {
options: {
shorthandCompacting: false,
roundingPrecision: -1,
sourceMap: false
},
files: {
'assets/<%= config.cssTargetDir %>/dependencies.css': [
'<%= config.cssDependencies %>'
]
}
}
},
postcss: {
options: {
map: true,
processors: [
require('autoprefixer-core')({ browsers: ['last 2 versions'] })
]
},
files: {
src: 'assets/<%= config.cssTargetDir %>/*.css'
}
},
uglify: {
dev: {
files: {
'assets/<%= config.jsTargetDir %>/script.js': [
'<%= config.jsSrcDir %>/**/*.js'
],
'assets/<%= config.jsTargetDir %>/dependencies.js': [
'<%= config.jsDependencies %>'
],
'assets/<%= config.jsTargetDir %>/dependencies.initial.js': [
'<%= config.jsDependenciesInitial %>'
]
}
},
devlight: {
files: {
'assets/<%= config.jsTargetDir %>/script.js': [
'<%= config.jsSrcDir %>/**/*.js'
]
}
},
dist: {
files: {
'assets/<%= config.jsTargetDir %>/script.js': [
'<%= config.jsSrcDir %>/**/*.js'
],
'assets/<%= config.jsTargetDir %>/dependencies.js': [
'<%= config.jsDependencies %>'
],
'assets/<%= config.jsTargetDir %>/dependencies.initial.js': [
'<%= config.jsDependenciesInitial %>'
]
}
}
},
watch: {
css: {
files: '<%= config.cssSrcDir %>/**/*.scss',
tasks: ['sass:dev','copy:dev','postcss']
},
js: {
files: '<%= config.jsSrcDir %>/**/*.js',
tasks: ['uglify:devlight']
}
}
});

grunt.registerTask('build', [
'clean:dist',
'sass:dist',
'cssmin:dist',
'postcss',
'copy:dist',
'uglify:dist'
]);
grunt.registerTask('default', [
'sass:dev',
'cssmin:dev',
'postcss',
'copy:dev',
'uglify:dev',
'watch'
]);
};
22 changes: 22 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
Copyright (c) 2014-2015 Peter Amende - 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.
51 changes: 51 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
# Bleak

An AJAX driven magazine styled theme for [Ghost](http://github.com/tryghost/ghost/) by [Peter Amende](http://zutrinken.com/).

## Demo

* [Blog](http://bleak.zutrinken.com)
* [Post](http://bleak.zutrinken.com/demo)
* [Tag Archive](http://bleak.zutrinken.com/tag/general)
* [Author Archive](http://bleak.zutrinken.com/author/zutrinken)

## Setup

To enable [Disqus](https://disqus.com/) comments go to your blogs code injection settings and add `<script>var disqus = ‚YOUR_DISQUS_SHORTNAME‘;</script>` to your blog header.

## Development

Install [Grunt](http://gruntjs.com/getting-started/):

npm install -g grunt-cli

Install Grunt modules:

npm install

Install [Bower](http://bower.io):

npm install -g bower

Install Bower components:

bower install

Build Grunt project:

grunt

Distribute Grunt project:

grunt build

## Copyright & License

Copyright (C) 2015 Peter Amende - 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.
2 changes: 2 additions & 0 deletions assets/css/dependencies.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions assets/css/dependencies.css.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 6e02598

Please sign in to comment.