/** * flink */ 'use strict' const urlFor = require('hexo-util').url_for.bind(hexo) const flinkFn = (args, content) => { const data = hexo.render.renderSync({ text: content, engine: 'yaml' }) let result = '' data.forEach(item => { const className = item.class_name ? `` : '' const classDesc = item.class_desc ? `` : '' const listResult = item.link_list.map(link => ` `).join('') result += `${className}${classDesc}` }) return `` } hexo.extend.tag.register('flink', flinkFn, { ends: true })