File tree 4 files changed +1090
-1118
lines changed
4 files changed +1090
-1118
lines changed Original file line number Diff line number Diff line change 1
1
module . exports = function ( grunt ) {
2
-
2
+ var rewrite = require ( 'connect-modrewrite' ) ;
3
3
require ( 'time-grunt' ) ( grunt ) ;
4
-
5
- // Load Grunt modules
6
4
require ( 'load-grunt-tasks' ) ( grunt ) ;
7
5
8
6
grunt . initConfig ( {
@@ -172,6 +170,14 @@ module.exports = function(grunt) {
172
170
port : 4000 ,
173
171
livereload : true ,
174
172
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
+ }
175
181
}
176
182
}
177
183
}
Original file line number Diff line number Diff line change 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
11
5
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/
You can’t perform that action at this time.
0 commit comments