Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

Commit 3a39568

Browse files
committed
Add v2.2.3
1 parent 13928b1 commit 3a39568

Some content is hidden

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

80 files changed

+2722
-246
lines changed

Gruntfile.js

+1-5
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,6 @@ var config = require('./core/server/config'),
244244
'yarn; git submodule foreach "git checkout master && git pull ' +
245245
upstream + ' master"';
246246
}
247-
},
248-
249-
dbhealth: {
250-
command: 'knex-migrator health'
251247
}
252248
},
253249

@@ -715,7 +711,7 @@ var config = require('./core/server/config'),
715711
// `grunt master` [`upstream` is the default upstream to pull from]
716712
// `grunt master --upstream=parent`
717713
grunt.registerTask('master', 'Update your current working folder to latest master.',
718-
['shell:master', 'subgrunt:init', 'shell:dbhealth']
714+
['shell:master', 'subgrunt:init']
719715
);
720716

721717
// ### Release

content/themes/casper/assets/built/infinitescroll.js

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

content/themes/casper/assets/built/infinitescroll.js.map

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

content/themes/casper/assets/built/jquery.fitvids.js

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

content/themes/casper/assets/built/jquery.fitvids.js.map

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

content/themes/casper/assets/built/screen.css

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

content/themes/casper/assets/built/screen.css.map

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

content/themes/casper/default.hbs

+2-2
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
integrity="sha256-hwg4gsxgFZhOsEEamdOYGBf13FyQuiTwlAQgxVSNgt4="
7474
crossorigin="anonymous">
7575
</script>
76-
<script type="text/javascript" src="{{asset "js/jquery.fitvids.js"}}"></script>
76+
<script type="text/javascript" src="{{asset "built/jquery.fitvids.js"}}"></script>
7777

7878
{{#if pagination.pages}}
7979
<script>
@@ -82,7 +82,7 @@
8282
// we reached the last page already.
8383
var maxPages = parseInt('{{pagination.pages}}');
8484
</script>
85-
<script src="{{asset "js/infinitescroll.js"}}"></script>
85+
<script src="{{asset "built/infinitescroll.js"}}"></script>
8686
{{/if}}
8787

8888
{{!-- The #block helper will pull in data from the #contentFor other template files. In this case, there's some JavaScript which we only want to use in post.hbs, but it needs to be included down here, after jQuery has already loaded. --}}

content/themes/casper/gulpfile.js

+18-7
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,12 @@ var nodemonServerInit = function () {
2626
livereload.listen(1234);
2727
};
2828

29-
gulp.task('build', ['css'], function (/* cb */) {
29+
gulp.task('build', ['css', 'js'], function (/* cb */) {
3030
return nodemonServerInit();
3131
});
3232

33+
gulp.task('generate', ['css', 'js']);
34+
3335
gulp.task('css', function () {
3436
var processors = [
3537
easyimport,
@@ -48,25 +50,34 @@ gulp.task('css', function () {
4850
.pipe(livereload());
4951
});
5052

53+
gulp.task('js', function () {
54+
var jsFilter = filter(['**/*.js'], {restore: true});
55+
56+
return gulp.src('assets/js/*.js')
57+
.on('error', swallowError)
58+
.pipe(sourcemaps.init())
59+
.pipe(jsFilter)
60+
.pipe(uglify())
61+
.pipe(jsFilter.restore)
62+
.pipe(sourcemaps.write('.'))
63+
.pipe(gulp.dest('assets/built/'))
64+
.pipe(livereload());
65+
});
66+
5167
gulp.task('watch', function () {
5268
gulp.watch('assets/css/**', ['css']);
5369
});
5470

55-
gulp.task('zip', ['css'], function () {
71+
gulp.task('zip', ['css', 'js'], function () {
5672
var targetDir = 'dist/';
5773
var themeName = require('./package.json').name;
5874
var filename = themeName + '.zip';
5975

60-
var jsFilter = filter(['**/*.js'], {restore: true});
61-
6276
return gulp.src([
6377
'**',
6478
'!node_modules', '!node_modules/**',
6579
'!dist', '!dist/**'
6680
])
67-
.pipe(jsFilter)
68-
.pipe(uglify())
69-
.pipe(jsFilter.restore)
7081
.pipe(zip(filename))
7182
.pipe(gulp.dest(targetDir));
7283
});

content/themes/casper/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "casper",
33
"description": "The default personal blogging theme for Ghost. Beautiful, minimal and responsive.",
44
"demo": "https://demo.ghost.io",
5-
"version": "2.6.4",
5+
"version": "2.7.0",
66
"engines": {
77
"ghost": ">=2.0.0"
88
},

content/themes/casper/partials/site-nav.hbs

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,16 @@
1414
<div class="site-nav-right">
1515
<div class="social-links">
1616
{{#if @blog.facebook}}
17-
<a class="social-link social-link-fb" href="{{facebook_url @blog.facebook}}" target="_blank" rel="noopener">{{> "icons/facebook"}}</a>
17+
<a class="social-link social-link-fb" href="{{facebook_url @blog.facebook}}" title="Facebook" target="_blank" rel="noopener">{{> "icons/facebook"}}</a>
1818
{{/if}}
1919
{{#if @blog.twitter}}
20-
<a class="social-link social-link-tw" href="{{twitter_url @blog.twitter}}" target="_blank" rel="noopener">{{> "icons/twitter"}}</a>
20+
<a class="social-link social-link-tw" href="{{twitter_url @blog.twitter}}" title="Twitter" target="_blank" rel="noopener">{{> "icons/twitter"}}</a>
2121
{{/if}}
2222
</div>
2323
{{#if @labs.subscribers}}
2424
<a class="subscribe-button" href="#subscribe">Subscribe</a>
2525
{{else}}
26-
<a class="rss-button" href="https://feedly.com/i/subscription/feed/{{@blog.url}}/rss/" target="_blank" rel="noopener">{{> "icons/rss"}}</a>
26+
<a class="rss-button" href="https://feedly.com/i/subscription/feed/{{@blog.url}}/rss/" title="RSS" target="_blank" rel="noopener">{{> "icons/rss"}}</a>
2727
{{/if}}
2828
</div>
2929
</nav>

0 commit comments

Comments
 (0)