Permalink
Browse files

Refactored boilerplate templates

- moving `include`, `layouts` and `pages` to `templates` dir
  • Loading branch information...
1 parent abe1acd commit 869f4e1bdf5aefa6b6c1c519971e56f18324e24d @hariadi hariadi committed Aug 17, 2013
View
@@ -24,23 +24,22 @@ module.exports = function(grunt) {
data: 'src/**/*.{json,yml}',
assets: '<%= site.destination %>/assets',
helpers: 'src/helpers/helper-*.js',
- layoutdir: 'src/layouts',
- partials: ['src/includes/**/*.hbs'],
+ layoutdir: 'src/templates/layouts',
+ partials: ['src/templates/includes/**/*.hbs'],
},
site: {
// Target-level options
options: {layout: 'default.hbs'},
files: [
- { expand: true, cwd: 'src', src: ['*.hbs', '!index.hbs'], dest: '<%= site.destination %>/' },
- { expand: true, cwd: 'src', src: ['index.hbs'], dest: './' }
+ { expand: true, cwd: 'src/templates/pages', src: ['*.hbs'], dest: '<%= site.destination %>/' }
]
}
},
// Before generating any new files,
// remove any previously-created files.
clean: {
- all: ['<%= site.destination %>/**/*.{html,md}', 'index.html']
+ all: ['<%= site.destination %>/**/*.{html,md}']
}
});
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,16 +1,16 @@
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
- <a class="navbar-brand" href="{{#isnt basename "index"}}../{{/isnt}}index.html">ASSEMBLE</a>
+ <a class="navbar-brand" href="{{#isnt basename "index"}}{{/isnt}}index.html">ASSEMBLE</a>
<ul class="nav">
<li{{#is basename "index"}} class="active"{{/is}}>
- <a href="{{#isnt basename "index"}}../{{/isnt}}index.html">Home</a>
+ <a href="{{#isnt basename "index"}}{{/isnt}}index.html">Home</a>
</li>
<li{{#is basename "markdown"}} class="active"{{/is}}>
- <a href="{{#is basename "index"}}site/{{/is}}markdown.html">Markdown</a>
+ <a href="{{#is basename "index"}}{{/is}}markdown.html">Markdown</a>
</li>
<li{{#is basename "examples"}} class="active"{{/is}}>
- <a href="{{#is basename "index"}}site/{{/is}}examples.html">Examples</a>
+ <a href="{{#is basename "index"}}{{/is}}examples.html">Examples</a>
</li>
</ul>
<ul class="nav pull-right">
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 869f4e1

Please sign in to comment.