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

Support custom permalink for pages #16

Closed
kokkonisd opened this issue Feb 14, 2023 · 0 comments
Closed

Support custom permalink for pages #16

kokkonisd opened this issue Feb 14, 2023 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@kokkonisd
Copy link
Owner

For pages only, we should support the option of having a custom permalink. For example, the user should be able to assign the page foo.md to the URL /bar/foo (regardless of the presence or absence of a bar.md page).

This should not be supported for posts, as posts already have their own unique URL, and there doesn't seem to be a legitimate use case for custom permalinks for them.

@kokkonisd kokkonisd self-assigned this Feb 14, 2023
@kokkonisd kokkonisd added the enhancement New feature or request label Feb 14, 2023
kokkonisd added a commit that referenced this issue Feb 26, 2023
As described in the issue, pages should now support permalinks. There
should be enough checks in place to avoid things like generating pages
outside of the build directory, and warnings to inform user of potential
page conflicts. The documentation is also updated to inform the user on
how to use permalinks.

[#16]
kokkonisd added a commit that referenced this issue Feb 26, 2023
The redundant permalink check is fixed, and an extra check is added for
trying to overwrite the global index '/' with a permalink.

[#16]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant