Repository navigation
Add article-level short links and /n, /n/ fallback - #203
Merged
Merged
Conversation
- /n/{vol}/{article}: intro=0, articles keep their numeric suffix,
comics use c (c1/c2... only when multiple exist per issue),
paintings=p, interview=i, ope_sec=o, specialproj=s
- /n and /n/ redirect to /posts/ when no volume is given
|
🚀 Preview deployment ready!
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
/n/{vol}issue short-link redirects with article-level short links:/n/{vol}/{article}0= 卷首语 (intro),1..n= 正常文章 (matches the article's own numeric suffix)c= 漫画 (orc1/c2... when an issue has more than one comic)p= 图 (paintings),i= 访谈 (interview),o= 干员秘闻 (ope_sec),s= 特别企划 (specialproj)/nand/n/now redirect to/posts/when no volume is givenTest plan
pnpm run docs:buildsucceedsdist/_redirectsagainst user-supplied examples:/n/20/3 -> /posts/2024-03/article3.html,/n/19/i -> /posts/2024-02/interview.htmlc(no number) and the one dual-comic issue (2023-09) usesc1/c2