Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable use of formatter contentSlug #90

Open
voxpelli opened this issue Jan 3, 2019 · 0 comments
Open

Enable use of formatter contentSlug #90

voxpelli opened this issue Jan 3, 2019 · 0 comments

Comments

@voxpelli
Copy link
Owner

voxpelli commented Jan 3, 2019

The options forwarded to the formatter should enable one to make use of the contentSlug option (see https://github.com/voxpelli/node-format-microformat#options):

.then(options => new MicropubFormatter({
relativeTo: siteUrl,
deriveCategory: categoryDeriver,
deriveLanguages: options.deriveLanguages,
permalinkStyle: options.permalinkStyle,
filenameStyle: options.filenameStyle,
filesStyle: options.mediaFilesStyle,
layoutName: options.layoutName
}))

That should solve juandpinto/node-format-microformat@bf9ad7b#commitcomment-31828341 and allow eg. a post like https://voxpelli.com/social/2018/12/40669/ / https://github.com/voxpelli/voxpelli.github.com/blob/master/_posts/2018-12-16-40669.md to have a content based slug

Ping @juandpinto

voxpelli referenced this issue in juandpinto/node-format-microformat Jan 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant