[fix] link url

This commit is contained in:
xaoxuu 2024-02-04 15:38:49 +08:00
parent e1eb07a11e
commit cfae90c22b
1 changed files with 2 additions and 1 deletions

View File

@ -13,9 +13,10 @@ module.exports = ctx => function(args) {
if (args.url == null) {
return '';
}
const url = full_url_for(args.url)
args.api = ctx.theme.config.tag_plugins.linkcard.api
if (args.api) {
args.api = args.api.replace('${href}', args.url)
args.api = args.api.replace('${href}', url)
}
var autofill = []
if (!args.title) {