diff --git a/_config.yml b/_config.yml index 3bfb9e7..4618cf2 100755 --- a/_config.yml +++ b/_config.yml @@ -250,7 +250,7 @@ plugins: friends: /js/plugins/friends.js ghinfo: /js/plugins/ghinfo.js timeline: /js/plugins/timeline.js - + linkcard: /js/plugins/linkcard.js marked: https://cdn.bootcdn.net/ajax/libs/marked/4.0.18/marked.min.js diff --git a/scripts/tags/link.js b/scripts/tags/link.js index a6ce540..95498ac 100644 --- a/scripts/tags/link.js +++ b/scripts/tags/link.js @@ -2,7 +2,7 @@ * link.js v1.1 | https://github.com/xaoxuu/hexo-theme-stellar/ * 格式与官方标签插件一致使用空格分隔,中括号内的是可选参数(中括号不需要写出来) * - * {% link url title [description] [icon:src] %} + * {% link url [title] [desc:true/false] [icon:src] %} */ 'use strict'; @@ -11,11 +11,11 @@ var util = require('hexo-util'); const full_url_for = require('hexo-util').full_url_for.bind(hexo); hexo.extend.tag.register('link', function(args) { - args = hexo.args.map(args, ['icon'], ['url', 'title', 'description']); + args = hexo.args.map(args, ['icon', 'desc'], ['url', 'title']); var el = ''; el += '