1
0
Fork 0
This commit is contained in:
Matthias Kretschmann 2013-11-24 19:15:34 +01:00
parent 752cf42a18
commit f96da506e5
8 changed files with 54 additions and 46 deletions

View File

@ -40,6 +40,9 @@ module.exports = function(grunt){
production: {
lsi: true,
src: '<%= config.src %>/'
},
serve: {
src: '<%= config.src %>/'
}
},
@ -95,34 +98,28 @@ module.exports = function(grunt){
// image optimization
imagemin: {
assets: {
files: [
{
expand: true,
cwd: '<%= config.site %>/<%= config.assets.img %>/',
src: ['**/*.{png,jpg,jpeg,gif}'],
dest: '<%= config.site %>/<%= config.assets.img %>/'
}
]
files: [{
expand: true,
cwd: '<%= config.site %>/<%= config.assets.img %>/',
src: ['**/*.{png,jpg,jpeg,gif}'],
dest: '<%= config.site %>/<%= config.assets.img %>/'
}]
},
media: {
files: [
{
expand: true,
cwd: '<%= config.site %>/media/',
src: ['**/*.{png,jpg,jpeg,gif}'],
dest: '<%= config.site %>/media/'
}
]
files: [{
expand: true,
cwd: '<%= config.site %>/media/',
src: ['**/*.{png,gif}'],
dest: '<%= config.site %>/media/'
}]
},
touchicons: {
files: [
{
expand: true,
cwd: '<%= config.site %>/',
src: ['*.png'],
dest: '<%= config.site %>/'
}
]
files: [{
expand: true,
cwd: '<%= config.site %>/',
src: ['*.png'],
dest: '<%= config.site %>/'
}]
}
},
@ -157,7 +154,7 @@ module.exports = function(grunt){
'<%= config.src %>/_layouts/**',
'<%= config.src %>/_posts/**'
],
tasks: ['jekyll', 'less', 'uglify']
tasks: ['jekyll:serve', 'less', 'uglify']
},
},
@ -211,7 +208,7 @@ module.exports = function(grunt){
// Dev server
grunt.registerTask('server', [
'rsync:copy_media',
'jekyll',
'jekyll:serve',
'less',
'cmq',
'cssmin',
@ -229,7 +226,7 @@ module.exports = function(grunt){
grunt.registerTask('build', [
'clean',
'rsync:copy_media',
'jekyll',
'jekyll:production',
//'imagemin',
'less',
'cmq',

View File

@ -1,3 +1,11 @@
#
# Home: /
# About Page: /about/
# Archive Page: /archive/
# Pagination: /page/N/
# Post: /post/post-slug/
# RSS Feed: /feed.xml
#
# Basics
# --------------------

View File

@ -68,6 +68,8 @@
</script>
{% endif %}
<link rel="canonical" href="{{ page.url }}" />
<!-- Twitter Cards -->
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="@kremaliciouscom">

View File

@ -1,19 +1,21 @@
<aside class="related-posts">
{% if site.related_posts.size > 1 %}
<aside class="related-posts">
<h1 class="related-title">Related</h1>
<h1 class="related-title">Related</h1>
<div class="row">
<div class="row">
{% for post in site.posts limit:6 %}
{% for post in site.posts limit:6 %}
<article class="related-post col2">
<a href="{{ post.url }}">
<h1 class="post-title">{{ post.title }}</h1>
</a>
</article>
<article class="related-post col2">
<a href="{{ post.url }}">
<h1 class="post-title">{{ post.title }}</h1>
</a>
</article>
{% endfor %}
{% endfor %}
</div>
</div>
</aside>
</aside>
{% endif %}

View File

@ -202,7 +202,7 @@
text-align: center;
.post-title {
font-size: .9em;
font-size: .8em;
color: @text-color-light;
line-height: @line-height-base;
margin-top: 0;

View File

@ -56,6 +56,7 @@
.infiniteLoader .next {
width: 100%;
float: none;
margin-left: 0;
}
.infiniteLoader .previous,
@ -67,8 +68,6 @@
.infiniteLoader .next a {
.btn;
.aligncenter;
@media @breakpoint1 {
max-width: 40%;
}
padding-top: @line-height-computed/1.5;
padding-bottom: @line-height-computed/1.5;
}

View File

@ -23,7 +23,7 @@
@font-size-small: ceil(@font-size-base * 0.8);
@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);
@headings-font-family: @font-family-serif;

View File

@ -10,7 +10,7 @@
"grunt-contrib-less": "~0.6.4",
"grunt-contrib-watch": "~0.5.3",
"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-contrib-uglify": "~0.2.2",
"grunt-jekyll": "~0.4.0",