Skip to content

Commit 6ee0c7d

Browse files
committed
fix(index): Fix indenting issues and closing tag errors
- Update gruntfile for live reload
1 parent d95b343 commit 6ee0c7d

File tree

4 files changed

+1090
-1118
lines changed

4 files changed

+1090
-1118
lines changed

Gruntfile.js

+9-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
module.exports = function(grunt) {
2-
2+
var rewrite = require('connect-modrewrite');
33
require('time-grunt')(grunt);
4-
5-
// Load Grunt modules
64
require('load-grunt-tasks')(grunt);
75

86
grunt.initConfig({
@@ -172,6 +170,14 @@ module.exports = function(grunt) {
172170
port: 4000,
173171
livereload: true,
174172
base: '.jekyll',
173+
middleware: function(connect, options, middlewares) {
174+
// 1. mod-rewrite behavior
175+
var rules = [
176+
'!\\.html|\\.js|\\.css|\\.svg|\\.jp(e?)g|\\.png|\\.gif|\\.ico$ /index.html'
177+
];
178+
middlewares.unshift(rewrite(rules));
179+
return middlewares;
180+
}
175181
}
176182
}
177183
}

app/_config.yml

+8-27
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,9 @@
1-
# # Site settings
2-
# title: Jekyll Grunt Boilerplate
3-
4-
# description: > # this means to ignore newlines until "baseurl:"
5-
# Write an awesome description for your new site here. You can edit this
6-
# line in _config.yml. It will appear in your document head meta (for
7-
# Google search results) and in your feed.xml site description.
8-
# baseurl: "" # the subpath of your site, e.g. /blog/
9-
# url: "http://mncrff.github.io" # the base hostname & protocol for your site
10-
# github_username: mncrff
1+
# Site settings
2+
title: SDSLabs Team Page
3+
markdown: kramdown
4+
permalink: /:categories/:title
115

12-
# # Build settings
13-
# markdown: kramdown
14-
# highlighter: pygments
15-
# exclude:
16-
# - README.md
17-
# - vendor
18-
# - node_modules
19-
# - bower_components
20-
# - grunticons
21-
# - assets/scripts
22-
23-
# permalink: /:categories/:title
24-
25-
# # collections:
26-
# # name_of_collection:
27-
# # output: true
28-
# # permalink: /:collection/:title/
6+
# collections:
7+
# name_of_collection:
8+
# output: true
9+
# permalink: /:collection/:title/

0 commit comments

Comments
 (0)