mirror of
https://github.com/kremalicious/blog.git
synced 2025-02-14 21:10:25 +01:00
stuff
This commit is contained in:
parent
752cf42a18
commit
f96da506e5
29
Gruntfile.js
29
Gruntfile.js
@ -40,6 +40,9 @@ module.exports = function(grunt){
|
|||||||
production: {
|
production: {
|
||||||
lsi: true,
|
lsi: true,
|
||||||
src: '<%= config.src %>/'
|
src: '<%= config.src %>/'
|
||||||
|
},
|
||||||
|
serve: {
|
||||||
|
src: '<%= config.src %>/'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -95,34 +98,28 @@ module.exports = function(grunt){
|
|||||||
// image optimization
|
// image optimization
|
||||||
imagemin: {
|
imagemin: {
|
||||||
assets: {
|
assets: {
|
||||||
files: [
|
files: [{
|
||||||
{
|
|
||||||
expand: true,
|
expand: true,
|
||||||
cwd: '<%= config.site %>/<%= config.assets.img %>/',
|
cwd: '<%= config.site %>/<%= config.assets.img %>/',
|
||||||
src: ['**/*.{png,jpg,jpeg,gif}'],
|
src: ['**/*.{png,jpg,jpeg,gif}'],
|
||||||
dest: '<%= config.site %>/<%= config.assets.img %>/'
|
dest: '<%= config.site %>/<%= config.assets.img %>/'
|
||||||
}
|
}]
|
||||||
]
|
|
||||||
},
|
},
|
||||||
media: {
|
media: {
|
||||||
files: [
|
files: [{
|
||||||
{
|
|
||||||
expand: true,
|
expand: true,
|
||||||
cwd: '<%= config.site %>/media/',
|
cwd: '<%= config.site %>/media/',
|
||||||
src: ['**/*.{png,jpg,jpeg,gif}'],
|
src: ['**/*.{png,gif}'],
|
||||||
dest: '<%= config.site %>/media/'
|
dest: '<%= config.site %>/media/'
|
||||||
}
|
}]
|
||||||
]
|
|
||||||
},
|
},
|
||||||
touchicons: {
|
touchicons: {
|
||||||
files: [
|
files: [{
|
||||||
{
|
|
||||||
expand: true,
|
expand: true,
|
||||||
cwd: '<%= config.site %>/',
|
cwd: '<%= config.site %>/',
|
||||||
src: ['*.png'],
|
src: ['*.png'],
|
||||||
dest: '<%= config.site %>/'
|
dest: '<%= config.site %>/'
|
||||||
}
|
}]
|
||||||
]
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -157,7 +154,7 @@ module.exports = function(grunt){
|
|||||||
'<%= config.src %>/_layouts/**',
|
'<%= config.src %>/_layouts/**',
|
||||||
'<%= config.src %>/_posts/**'
|
'<%= config.src %>/_posts/**'
|
||||||
],
|
],
|
||||||
tasks: ['jekyll', 'less', 'uglify']
|
tasks: ['jekyll:serve', 'less', 'uglify']
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -211,7 +208,7 @@ module.exports = function(grunt){
|
|||||||
// Dev server
|
// Dev server
|
||||||
grunt.registerTask('server', [
|
grunt.registerTask('server', [
|
||||||
'rsync:copy_media',
|
'rsync:copy_media',
|
||||||
'jekyll',
|
'jekyll:serve',
|
||||||
'less',
|
'less',
|
||||||
'cmq',
|
'cmq',
|
||||||
'cssmin',
|
'cssmin',
|
||||||
@ -229,7 +226,7 @@ module.exports = function(grunt){
|
|||||||
grunt.registerTask('build', [
|
grunt.registerTask('build', [
|
||||||
'clean',
|
'clean',
|
||||||
'rsync:copy_media',
|
'rsync:copy_media',
|
||||||
'jekyll',
|
'jekyll:production',
|
||||||
//'imagemin',
|
//'imagemin',
|
||||||
'less',
|
'less',
|
||||||
'cmq',
|
'cmq',
|
||||||
|
@ -1,3 +1,11 @@
|
|||||||
|
#
|
||||||
|
# Home: /
|
||||||
|
# About Page: /about/
|
||||||
|
# Archive Page: /archive/
|
||||||
|
# Pagination: /page/N/
|
||||||
|
# Post: /post/post-slug/
|
||||||
|
# RSS Feed: /feed.xml
|
||||||
|
#
|
||||||
|
|
||||||
# Basics
|
# Basics
|
||||||
# --------------------
|
# --------------------
|
||||||
|
@ -68,6 +68,8 @@
|
|||||||
</script>
|
</script>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
|
<link rel="canonical" href="{{ page.url }}" />
|
||||||
|
|
||||||
<!-- Twitter Cards -->
|
<!-- Twitter Cards -->
|
||||||
<meta name="twitter:card" content="summary">
|
<meta name="twitter:card" content="summary">
|
||||||
<meta name="twitter:site" content="@kremaliciouscom">
|
<meta name="twitter:site" content="@kremaliciouscom">
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
{% if site.related_posts.size > 1 %}
|
||||||
<aside class="related-posts">
|
<aside class="related-posts">
|
||||||
|
|
||||||
<h1 class="related-title">Related</h1>
|
<h1 class="related-title">Related</h1>
|
||||||
@ -17,3 +18,4 @@
|
|||||||
</div>
|
</div>
|
||||||
|
|
||||||
</aside>
|
</aside>
|
||||||
|
{% endif %}
|
@ -202,7 +202,7 @@
|
|||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
.post-title {
|
.post-title {
|
||||||
font-size: .9em;
|
font-size: .8em;
|
||||||
color: @text-color-light;
|
color: @text-color-light;
|
||||||
line-height: @line-height-base;
|
line-height: @line-height-base;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
|
@ -56,6 +56,7 @@
|
|||||||
.infiniteLoader .next {
|
.infiniteLoader .next {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
float: none;
|
float: none;
|
||||||
|
margin-left: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.infiniteLoader .previous,
|
.infiniteLoader .previous,
|
||||||
@ -67,8 +68,6 @@
|
|||||||
.infiniteLoader .next a {
|
.infiniteLoader .next a {
|
||||||
.btn;
|
.btn;
|
||||||
.aligncenter;
|
.aligncenter;
|
||||||
|
padding-top: @line-height-computed/1.5;
|
||||||
@media @breakpoint1 {
|
padding-bottom: @line-height-computed/1.5;
|
||||||
max-width: 40%;
|
|
||||||
}
|
|
||||||
}
|
}
|
@ -23,7 +23,7 @@
|
|||||||
@font-size-small: ceil(@font-size-base * 0.8);
|
@font-size-small: ceil(@font-size-base * 0.8);
|
||||||
@font-size-mini: ceil(@font-size-base * 0.7);
|
@font-size-mini: ceil(@font-size-base * 0.7);
|
||||||
|
|
||||||
@line-height-base: 1.45;
|
@line-height-base: 1.5;
|
||||||
@line-height-computed: floor(@font-size-base * @line-height-base);
|
@line-height-computed: floor(@font-size-base * @line-height-base);
|
||||||
|
|
||||||
@headings-font-family: @font-family-serif;
|
@headings-font-family: @font-family-serif;
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
"grunt-contrib-less": "~0.6.4",
|
"grunt-contrib-less": "~0.6.4",
|
||||||
"grunt-contrib-watch": "~0.5.3",
|
"grunt-contrib-watch": "~0.5.3",
|
||||||
"grunt-contrib-cssmin": "~0.6.2",
|
"grunt-contrib-cssmin": "~0.6.2",
|
||||||
"grunt-contrib-imagemin": "~0.3.0",
|
"grunt-contrib-imagemin": "~0.4.0",
|
||||||
"grunt-combine-media-queries": "~1.0.8",
|
"grunt-combine-media-queries": "~1.0.8",
|
||||||
"grunt-contrib-uglify": "~0.2.2",
|
"grunt-contrib-uglify": "~0.2.2",
|
||||||
"grunt-jekyll": "~0.4.0",
|
"grunt-jekyll": "~0.4.0",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user