Skip to content

Commit 8b8305f

Browse files
authored
Fix OSGraph link (#78)
1 parent 9de7b47 commit 8b8305f

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

themes/OpenSouceWin/layout/_partial/detail.ejs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
4343
<div class="contribute mt-4 mt-sm-1">
4444
<%- item.content %>
45-
<%- partial('osgraph', {github_id: item.github_id}) %>
45+
<%- partial('osgraph', {slug: item.slug}) %>
4646
</div>
4747
</div>
4848
</div>
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<% if (github_id) { %>
1+
<% if (slug) { %>
22
<h4>开发活动</h4>
3-
<iframe width="100%" height="500" src="https://osgraph.com/result?shareId=4&shareParams=<%= github_id %>,10&isShare=true" title="" frameborder="0"></iframe>
3+
<iframe width="100%" height="500" src="https://osgraph.com/graphs/developer-activity/github/<%= slug %>?user-limit=10" title="" frameborder="0"></iframe>
44
55
<h4>开源伙伴</h4>
6-
<iframe width="100%" height="500" src="https://osgraph.com/result?shareId=5&shareParams=<%= github_id %>,10&isShare=true" title="" frameborder="0"></iframe>
6+
<iframe width="100%" height="500" src="https://osgraph.com/graphs/os-partner/github/<%= slug %>?user-limit=10" title="" frameborder="0"></iframe>
77
88
<h4>开源兴趣</h4>
9-
<iframe width="100%" height="500" src="https://osgraph.com/result?shareId=6&shareParams=<%= github_id %>,5,3&isShare=true" title="" frameborder="0"></iframe>
9+
<iframe width="100%" height="500" src="https://osgraph.com/graphs/os-interest/github/<%= slug %>?repo-limit=5&topic-limit=3" title="" frameborder="0"></iframe>
1010
<% } %>

0 commit comments

Comments
 (0)