-
Notifications
You must be signed in to change notification settings - Fork 441
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
add issues-api and friends tag-plugin #229
Conversation
Thanks so much for opening your first PR here! |
|
The function of the friends tag is similar to the existing link-grid, I suggest make it as another style of link-grid. |
In my opinion, the usage and style of both of them are very different. linkgrid:
but friends tag:
|
The data in data.json contains almost the same information as the current link-grid tag. At this point, I think the functions of the two tag plugins are similar. |
@@ -26,5 +26,8 @@ hexo.extend.helper.register('js_vendors', function() { | |||
if (theme.pangu) { | |||
vendors.push('pangu'); | |||
} | |||
if (theme.issues_api) { | |||
vendors.push('jquery'); |
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.
不应该这样引入jQuery的,同时开了fancybox可能会出错,因为那边也有jQuery
This way of loading information from files has merit compared to styles, allowing faster updating of friend link information rather than regeneration, and allowing submitters to maintain the information themselves (via Github, etc.) English is not my native language; please excuse typing errors. |
Look forward to this feature. |
I think it's better to extend the exsisting usage of {% linkgrid %}
Theme NexT | https://theme-next.js.org/ | Stay Simple. Stay NexT. | /images/apple-touch-icon-next.png
% friends example/friends
{% endlinkgrid %} Possibly more sources together: {% linkgrid %}
Theme NexT | https://theme-next.js.org/ | Stay Simple. Stay NexT. | /images/apple-touch-icon-next.png
% friends example/friends
% friends example2/friends
{% endlinkgrid %} |
Sorry, my js is very amateur, maybe I should close this PR and submit a suggestion issue for professionals to finish it.
|
PR Checklist
PR Type
What is the current behavior?
Issue resolved:
What is the new behavior?
How to use?
In NexT
_config.yml
:In blog markdown file (example):