Open ljcbaby opened 3 years ago
Is the content of the json file generated automatically or edited by the blogger?
I think it should be automatically generated This is mainly used for the update and maintenance of friend links, allowing the applicant to maintain the information themselves (via Pull Request)
However, CORS issues may exist
I think it should be automatically generated This is mainly used for the update and maintenance of friend links, allowing the applicant to maintain the information themselves (via Pull Request)
Can this feature be implemented?
However, CORS issues may exist
This has not been reproduced again on my new computer's Egde.
Here is my code just for your reference.
Code: https://github.com/leirock/friends/tree/next Blog: https://blog.dlzhang.com/friends/
source/friends/friendslist.yml
: raw data in YAML formatscripts/inline-lables.js
: enable inline label {% friendslink %}
scripts/friendslist.js
: convert YAML to JSONsource/friends/index.md
: use code {% friendslink friendslist.json %}
to load JSON file in link page (but can only load one JSON file in one page)source/_data/styles.styl
: link grid style for friends links (I didn't design a new style for friends links, just modifed NexT's link grid style)Seems like a valid use case.
@stevenjoezhang is this something that we are going to implement in the future?
Please follow this Issue template to provide relevant information, such as source code repository, website URL and screenshots, which will help us investigate. 请按照此 Issue 模版提供相关信息,例如源码仓库、网站链接和屏幕截图,这将有助于我们进行调查。
Issue Checklist
Expected behavior
load linkgrid metadata from json files
Actual behavior
use like:
Other Information
As pr #229