2024-01-20 01:51:09 +08:00
|
|
|
<%
|
|
|
|
function layoutDiv() {
|
|
|
|
const repo = page.repo || theme.wiki.tree[page.wiki]?.repo
|
|
|
|
if (repo == null) {
|
|
|
|
return ''
|
|
|
|
}
|
|
|
|
return `
|
2024-02-18 12:33:28 +08:00
|
|
|
<div class="right ghrepo ds-ghinfo" api="${theme.api_host.ghapi}/repos/${repo}">
|
2024-01-20 01:51:09 +08:00
|
|
|
<a class="repo-link bold" href="https://github.com/${repo}">
|
|
|
|
${icon('github:repo')}
|
|
|
|
<span type="text">${repo}</span>
|
|
|
|
</a>
|
|
|
|
<a class="repo-link" href="https://github.com/${repo}/stargazers">
|
|
|
|
${icon('github:star')}
|
|
|
|
<span type="text" id="stargazers_count">0</span><span>stars</span>
|
|
|
|
</a>
|
|
|
|
<a class="repo-link" href="https://github.com/${repo}/forks">
|
|
|
|
${icon('github:fork')}
|
|
|
|
<span type="text" id="forks_count">0</span><span>forks</span>
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
`
|
|
|
|
}
|
|
|
|
%>
|
|
|
|
<%- layoutDiv() %>
|