refactor: Add data for each year#53
Merged
sy-records merged 12 commits intoopensourcewin:mainfrom Aug 4, 2024
Merged
Conversation
Contributor
Author
|
TBR :) |
Contributor
Author
|
回看 1 年前的代码,也许目前数据存储形式并不是最佳实践😭😭😭 后面也可以改成一年一个 json 文件🙃 |
Member
|
可以用 Action 来生成对应的数据,具体还要看看每年的要不要分单独的页面,还是都放在一个页面上 |
Contributor
Author
这个 pr 实现的功能是放到一个页面,并且可以切换 tab 以切换每年的排名呐 |
sy-records
approved these changes
Jan 3, 2024
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.
目前排名数据与个人页面内
ranking强绑定,导致每次新增一年的数据,可能需要新建项目或者构建冗余文件,此 PR 主要优化此问题。source/_data/rankingList.json获取,每年数据在此文件新增即可;China;hexo-asset-pipeline。