-
-
Notifications
You must be signed in to change notification settings - Fork 14
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
feat: redirect to post using slug #55
Conversation
README.md
Outdated
--- | ||
``` | ||
|
||
http://yoursite.com/baz-page ⇒ http://yoursite.com/2020/01/02/foo-post/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🤔 ?
-http://yoursite.com/2020/01/02/foo-post/
+http://yoursite.com/foo-post/
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For example, there is an existing post "source/_posts/foo-post.md" that is available at http://yoursite.com/2020/01/02/foo-post/
The page should redirect to post located at http://yoursite.com/2020/01/02/foo-post/
when a post couldn't be located (due to user's typo), then it will redirect to (non-existent) http://yoursite.com/foo-post/.
README.md
Outdated
|
||
http://yoursite.com/baz-page ⇒ http://yoursite.com/2020/01/02/foo-post/ | ||
|
||
_If a post could not be located (due to incorrect value), the article will be redirected to http://yoursite/foo-post_ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- http://yoursite/foo-post
+ http://yoursite.com/foo-post
BTW, we should stop to use We should use |
a0a7291
to
eb4d930
Compare
Updated to |
|
useful for redirecting a page to a post