- Add
Content#relative_path
which returns a file's relative path within its collection.
-
Add support for a content instance knowing its own
#slug
- its extension-less relative path within its collection:Page = Decant.define(dir: 'content', ext: 'md') page = Page.find('features/slugs') page.path.expand_path # => "/Users/dave/my-website/content/features/slugs.md" page.slug # => "features/slugs"
-
Collection
is no immutable and can no longer be changed after initialisation.
- Initial release