const { Component, Fragment } = require('inferno'); const Plugins = require('./plugins'); module.exports = class extends Component { render() { const { site, config, helper, page } = this.props; const { url_for, cdn } = helper; const { article } = config; const language = page.lang || page.language || config.language || 'en'; let fold = 'unfolded'; let clipboard = true; if (article && article.highlight) { if (typeof article.highlight.clipboard !== 'undefined') { clipboard = !!article.highlight.clipboard; } if (typeof article.highlight.fold === 'string') { fold = article.highlight.fold; } } const embeddedConfig = `var IcarusThemeSettings = { article: { highlight: { clipboard: ${clipboard}, fold: '${fold}' } } };`; return {clipboard && } ; } };