Issues when writing assemble into sub directory
BradlySharpe opened this issue · comments
Config:
options: {
layout: 'page.hbs',
layoutdir: 'source/configuration/layouts/',
partials: 'source/configuration/partials/**/*.{hbs,css}',
plugins: ['grunt-assemble-lunr'],
lunr: {
dataPath: 'destination/search.json'
}
},
homepage: {
options: {
layout: 'homepage.hbs'
},
files: [
{
cwd: "source/content/_pages/",
dest: "destination/",
expand: true,
src: 'index.hbs'
}
]
},
pages: {
files: [
{
cwd: "source/content/_pages/",
dest: "destination/",
expand: true,
src: [ '**/*.hbs', '!index.hbs' ]
}
]
},
blog: {
options: {
layout: 'blog.hbs'
},
files: [
{
cwd: "source/content/blog/",
dest: "destination/blog/",
expand: true,
src: [ '**/*.hbs', '**/*.md' ]
}
]
}
Then I only publish the contents of the destination folder to the webserver, however all the lunr url's are destination/index.html and destination/blog/blogpost.html
An option to add cwd or the ability to remove the destination/ path would be very handy!
@BradlySharpe Thanks for the issue! If you're reporting a bug, please be sure to include:
- The version of
assemble
you are using. - Your assemblefile.js (This can be in a gist)
- The commandline output. (Screenshot or gist is fine)
- What you expected to happen instead.
assemble: 0.4.42
grunt-assemble-lunr: 0.1.0