Closed hariadi closed 10 years ago
closed #42
This will work but not modify assemble context:
filename
fileName
basename
page.data.date
The reason is to use with other plugins/helpers/collections. Example scenario why we need to modify:
{{#each pages }} <li{{#if this.isCurrentPage}} class="active"{{/if}}> <a href="{{{filename}} }">{{{title}} }</a> </li> {{/each }}
In this case isCurrentPage will never true, and filename (link) also always wrong.
isCurrentPage
true
see this: https://github.com/assemble/assemble-contrib-permalinks/commit/059718b59f693a0517ce5618e37410de7fdedac4.
Thanks for doing this!
btw, I merged b/c I'm working on this now. there are no breaking changes here. thanks again!
closed #42
This will work but not modify assemble context:
filename
fileName
basename
page.data.date
The reason is to use with other plugins/helpers/collections. Example scenario why we need to modify:
In this case
isCurrentPage
will nevertrue
, andfilename
(link) also always wrong.