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 #91

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

juandpinto
Copy link

Added an option to use post content as the slug. This is to address issue #90. It currently uses the first five words from the content. Would it be a good idea to allow for more variation? For example, changing the option to a numerical variable that identifies the number of words to use from the content.

There is a problem when contentSlug is true and the slug is used as part of filenameStyle (:year-:month-:day-:slug). Duplicate file names can occur, eg. when running server tests on https://micropub.rocks. In this case, an error is returned: HTTP/1.1 400 Bad Request. Would it be possible to check for duplicate filenames at the time of post creation?

Base automatically changed from master to main March 3, 2021 21:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant