grunt-assemble-permalinks
grunt-assemble-permalinks copied to clipboard
rename replacement patterns
Currently we use the name patterns
the options (huh!? who's bad idea was this!? okay it was me...):
options: {
permalinks: {
structure: ':author/:basename/index.html',
patterns: [
{
pattern: ':author',
replacement: '<%= _str.slugify(pkg.author.name) %>'
}
]
}
}
replacements
makes much more sense:
options: {
permalinks: {
structure: ':author/:basename/index.html',
replacements: [
{
pattern: ':author',
replacement: '<%= _str.slugify(pkg.author.name) %>'
}
]
}
}
+1 I think we use patterns for another helper or plugin too.
? do you mean replacements
?