<%= page.title %>
- I have 0 projects on Github
+ I have 0 projects on Github
+
<% if (theme.comment.type && !is_home()) { %>
<%- partial('post/comment', {post: page}) %>
<% } %>
-
+
+
+<% } %>
\ No newline at end of file
diff --git a/layout/_script/_repository/github.ejs b/layout/_script/_repository/github.ejs
new file mode 100644
index 00000000..d84e43ac
--- /dev/null
+++ b/layout/_script/_repository/github.ejs
@@ -0,0 +1,61 @@
+<% if (typeof(script) !== 'undefined' && script) { %>
+
+<% } %>
\ No newline at end of file
diff --git a/layout/_script/_repository/legacy.ejs b/layout/_script/_repository/legacy.ejs
new file mode 100644
index 00000000..cc9d4b73
--- /dev/null
+++ b/layout/_script/_repository/legacy.ejs
@@ -0,0 +1,54 @@
+<% if (typeof(script) !== 'undefined' && script) { %>
+
+<% } %>
\ No newline at end of file
diff --git a/layout/_script/repository.ejs b/layout/_script/repository.ejs
index 19a2e4e9..8b73a84d 100644
--- a/layout/_script/repository.ejs
+++ b/layout/_script/repository.ejs
@@ -1,52 +1,9 @@
-
+<% if (theme.repository) { %>
+ <% if (theme.repository.platform === 'github') { %>
+ <%- partial('_script/_repository/github', { script: true }) %>
+ <% } else if (theme.repository.platform === 'gitee') { %>
+ <%- partial('_script/_repository/gitee', { script: true }) %>
+ <% } %>
+<% } else if (theme.github) { %>
+ <%- partial('_script/_repository/legacy', { script: true }) %>
+<% } %>
\ No newline at end of file