Skip to content

Commit ca30974

Browse files
author
Raivis Vitols
committed
Refactoring of styles - BEM + ITCSS, removed Disqus.
1 parent 650bdc6 commit ca30974

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+708
-616
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
1+
################################################################################
2+
# Exclude node_modules/ folder from theme files
3+
################################################################################
14
node_modules/

Gruntfile.js

+9-10
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@ module.exports = function (grunt) {
55
sass: {
66
dist: {
77
files: {
8-
'assets/css/styles.css': 'assets/src/sass/styles.scss',
9-
'assets/css/print.css': 'assets/src/sass/print.scss'
8+
'assets/css/styles.css': 'source/sass/styles.scss'
109
},
1110

1211
options: {
@@ -17,24 +16,24 @@ module.exports = function (grunt) {
1716
},
1817

1918
uglify: {
20-
script: {
19+
scripts: {
2120
files: {
22-
'assets/js/script.js': [
23-
'assets/src/js/vendor/*.js',
24-
'assets/src/js/*.js'
21+
'assets/js/scripts.js': [
22+
'source/js/vendor/*.js',
23+
'source/js/*.js'
2524
]
2625
}
2726
}
2827
},
2928

3029
watch: {
31-
css: {
32-
files: 'assets/src/sass/**/*.scss',
30+
sass: {
31+
files: 'source/sass/**/*.scss',
3332
tasks: ['sass']
3433
},
3534

36-
js: {
37-
files: 'assets/src/js/**/*.js',
35+
scripts: {
36+
files: 'source/js/**/*.js',
3837
tasks: ['uglify']
3938
}
4039
}

README.md

+12-22
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,23 @@
1-
# Willow Ghost Theme
1+
# Willow Ghost Theme 2.0
2+
23
Personal, responsive, minimalist and open-source theme for Ghost blogging platform.
4+
Lightweight - only 2.8KB of CSS and 828B of JavaScript. No jQuery, vanilla JS only.
5+
Version 2.0 comes with SASS in BEM style using ITCSS (http://itcss.io/) architecture.
36

4-
![Willow Ghost Theme](http://i.imgur.com/gGNeWzG.png)
7+
![Willow Ghost Theme](http://i.imgur.com/17SqjHR.png)
58

6-
## Demo
9+
## Theme Demo
710

8-
This theme is currently used on my [personal blog](https://raivis.com/).
11+
This theme is currently being used on my personal blog - [https://raivis.com/](https://raivis.com/).
912

10-
## Styling & Compiling
13+
## Compiling SASS & Minifying JavaScript
1114

1215
Requires Grunt task runner & NPM to be installed.
1316

1417
$ cd content/themes/[theme-folder]
1518
$ npm install
1619
$ grunt
17-
18-
## Adding Disqus
19-
20-
Open the `content/themes/[theme-folder]/post.hbs` file,
21-
lookup `/* Paste Your Disqus Embed Code Here */`
22-
line and replace it with your Disqus embed code, which usually looks like this:
23-
24-
(function() {
25-
var d = document, s = d.createElement('script');
26-
s.src = '//yourdisqussite.disqus.com/embed.js';
27-
s.setAttribute('data-timestamp', +new Date());
28-
(d.head || d.body).appendChild(s);
29-
})();
30-
31-
## Editing Social Links
32-
33-
Edit the `content/themes/[theme-folder]/partials/social-links.hbs` file.
20+
21+
## Editing Social Links and Promo Links
22+
23+
Edit the `content/themes/[theme-folder]/partials/sidebar.hbs` file.

assets/css/print.css

-1
This file was deleted.

assets/css/styles.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/js/script.js

-1
This file was deleted.

assets/js/scripts.js

+1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

assets/src/sass/print.scss

-12
This file was deleted.

0 commit comments

Comments
 (0)