update vercel api

This commit is contained in:
xaoxuu 2022-09-29 13:35:47 +08:00
parent 0a620199f1
commit 50bcabc8eb
3 changed files with 4 additions and 4 deletions

View File

@ -67,7 +67,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') + '/v1/' + group.repo + '"';
el += ' api="' + (group.api || 'https://issues-api.xaoxuu.com') + '/v1/' + group.repo + '"';
el += '>';
el += '<div class="group-body"></div>';
el += '</div>';

View File

@ -24,10 +24,10 @@ hexo.extend.tag.register('ghcard', function(args) {
if (path.includes('/')) {
// is repo
const ps = path.split('/');
url += 'https://github-readme-stats.vercel.app/api/pin/?username=' + ps[0] + '&repo=' + ps[1];
url += 'https://github-readme-stats.xaoxuu.com/api/pin/?username=' + ps[0] + '&repo=' + ps[1];
} else {
// is user
url += 'https://github-readme-stats.vercel.app/api/?username=' + path;
url += 'https://github-readme-stats.xaoxuu.com/api/?username=' + path;
}
url += '&' + hexo.args.joinURLParams(args, params);
if (!url.includes('&show_owner=')) {

View File

@ -71,7 +71,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') + '/v1/' + group.repo + '"';
el += ' api="' + (group.api || 'https://issues-api.xaoxuu.com') + '/v1/' + group.repo + '"';
el += '>';
el += '<div class="group-body"></div>';
el += '</div>';