This commit is contained in:
xaoxuu 2021-03-09 23:14:14 +08:00
parent ace3bc34d4
commit fe4015ad71
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ hexo.extend.tag.register('friends', function(args) {
if (group.repo) {
el += '<div class="friendsjs-wrap"';
el += ' id="friends-api"';
el += ' api="' + (group.api || 'https://issues-api.vercel.app') + '/' + group.repo + '"';
el += ' api="' + (group.api || 'https://issues-api.vercel.app') + '/v1/' + group.repo + '"';
el += '>';
el += '<div class="group-body"></div>';
el += '</div>';

View File

@ -68,7 +68,7 @@ hexo.extend.tag.register('sites', function(args) {
if (group.repo) {
el += '<div class="sitesjs-wrap"';
el += ' id="sites-api"';
el += ' api="' + (group.api || 'https://issues-api.vercel.app') + '/' + group.repo + '"';
el += ' api="' + (group.api || 'https://issues-api.vercel.app') + '/v1/' + group.repo + '"';
el += '>';
el += '<div class="group-body"></div>';
el += '</div>';