From 30c765e9190f8568b0b403e964878f1f83345f5d Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Tue, 31 Oct 2023 13:09:55 +0000 Subject: [PATCH 1/9] chore(release): set `package.json` to 1.0.1 [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## [1.0.1](https://github.com/Tim-Saijun/hexo-plugin-aurora-s/compare/v1.0.0...v1.0.1) (2023-10-31) ### Bug Fixes * 增加重命名提示 ([9335d52](https://github.com/Tim-Saijun/hexo-plugin-aurora-s/commit/9335d5267bd7ce0b887aae2c7f80219d14a221e7)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 9cde606..fd115de 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.0.1](https://github.com/Tim-Saijun/hexo-plugin-aurora-s/compare/v1.0.0...v1.0.1) (2023-10-31) + + +### Bug Fixes + +* 增加重命名提示 ([9335d52](https://github.com/Tim-Saijun/hexo-plugin-aurora-s/commit/9335d5267bd7ce0b887aae2c7f80219d14a221e7)) + # 1.0.0 (2023-10-31) diff --git a/package.json b/package.json index f3e277b..681906d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-plugin-aurora-s", - "version": "1.0.0", + "version": "1.0.1", "description": "Modified plugin for Hexo Aurora theme", "main": "index.js", "keywords": [ From 86c56af83abb8798bf0d67c8f00539b09d07cc57 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=86=8D=E6=B6=A6?= Date: Wed, 1 Nov 2023 20:06:38 +0800 Subject: [PATCH 2/9] =?UTF-8?q?fix:=20shiki=E5=9B=9E=E6=BB=9A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/highlighter/index.js | 78 +++++++++++++++------------------------- 1 file changed, 28 insertions(+), 50 deletions(-) diff --git a/lib/highlighter/index.js b/lib/highlighter/index.js index 593d77d..b7454d2 100644 --- a/lib/highlighter/index.js +++ b/lib/highlighter/index.js @@ -1,33 +1,16 @@ const shiki = require('shiki'); -const { BUNDLED_LANGUAGES, toShikiTheme } = require('shiki'); +const { renderToHtml, toShikiTheme } = require('shiki'); +const { escapeHTML } = require('hexo-util'); const appRootPath = require('app-root-path'); const { lex, parse } = require('fenceparser'); const { sleep } = require('deasync'); const { throwWarning } = require('../helpers/utils'); const chalk = require('chalk'); -const styleRE = /]*(style=".*?")/; -const preRE = /^/; -const lineNoRE = /:(no-)?line-numbers(=\d*)?$/; -const defaultLang = 'txt'; - -function cleanup(str, bg) { - let cleanedStr = str.replace( - preRE, - (_, attributes) => `
`
-  );
-
-  if (bg) {
-    cleanedStr = cleanedStr.replace(styleRE, (_, style) =>
-      _.replace(style, bg ? `style="background-color: ${bg}"` : '')
-    );
-  }
-
-  return cleanedStr;
-}
-
-function renderCodeBlock(codeHtml, lang) {
-  return `
${lang}${codeHtml}
`; +function defaultCodeBlock(code, lang) { + return `
${lang}${escapeHTML( + code + )}
`; } function filterIntoShiki( @@ -38,36 +21,32 @@ function filterIntoShiki( ) { const { theme, backgroundColor } = options; - lang = lang.replace(lineNoRE, '').toLowerCase() || defaultLang; + if (highlighter.getLoadedLanguages().includes(lang)) { + // This will return an array of tokens for the provided code. + // A token represents a single part of the code, for example a keyword, a string, a comment, etc. + const tokens = highlighter.codeToThemedTokens(code, lang, theme); + // + // // This will return an HTML string that represents the provided code. + const codeHtml = renderToHtml(tokens, { + bg: backgroundColor ?? highlighter.getBackgroundColor(theme) + }); + + return `
${lang}${codeHtml}
`; + } - if (lang) { - const langLoaded = highlighter.getLoadedLanguages().includes(lang); - if (!langLoaded && lang !== 'ansi' && lang !== 'txt') { - throwWarning( - 'Aurora Code Filtering Warning', - `Code language: ${chalk.cyan( - `[${lang}]` - )} is not loaded, falling back to '${defaultLang}' for syntax highlighting.` - ); - lang = defaultLang; - } + if (lang !== '') { + throwWarning( + 'Aurora Code Filtering Warning', + `Code language: ${chalk.cyan(`[${lang}]`)} is not supported.` + ); + } else { + lang = 'plaintext'; } - const codeHtml = highlighter.codeToHtml(code, { - lang, - theme - }); - return cleanup(renderCodeBlock(codeHtml, lang), backgroundColor); + return defaultCodeBlock(code, lang); } function parseFence(infoString) { - if (!infoString) { - return { - lang: defaultLang, - meta: {} - }; - } - const tokens = lex(infoString); return { @@ -105,8 +84,7 @@ module.exports = (hexo) => { shiki .getHighlighter({ - theme: codeTheme, - langs: [...BUNDLED_LANGUAGES] + theme: codeTheme }) .then((hl) => (highlighter = hl)); @@ -130,4 +108,4 @@ module.exports = (hexo) => { }); }; }); -}; +}; \ No newline at end of file From c37e17b0ebe3be27c0bcc9dd4e5eadd1d1dde096 Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 1 Nov 2023 12:08:21 +0000 Subject: [PATCH 3/9] chore(release): set `package.json` to 1.0.2 [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## [1.0.2](https://github.com/Tim-Saijun/hexo-plugin-aurora-s/compare/v1.0.1...v1.0.2) (2023-11-01) ### Bug Fixes * shiki回滚 ([86c56af](https://github.com/Tim-Saijun/hexo-plugin-aurora-s/commit/86c56af83abb8798bf0d67c8f00539b09d07cc57)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fd115de..3ecfe82 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.0.2](https://github.com/Tim-Saijun/hexo-plugin-aurora-s/compare/v1.0.1...v1.0.2) (2023-11-01) + + +### Bug Fixes + +* shiki回滚 ([86c56af](https://github.com/Tim-Saijun/hexo-plugin-aurora-s/commit/86c56af83abb8798bf0d67c8f00539b09d07cc57)) + ## [1.0.1](https://github.com/Tim-Saijun/hexo-plugin-aurora-s/compare/v1.0.0...v1.0.1) (2023-10-31) diff --git a/package.json b/package.json index 681906d..bb0454d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-plugin-aurora-s", - "version": "1.0.1", + "version": "1.0.2", "description": "Modified plugin for Hexo Aurora theme", "main": "index.js", "keywords": [ From ab679dbde988d7e915b9da75bb725f52a4c3b015 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=86=8D=E6=B6=A6?= Date: Wed, 1 Nov 2023 20:14:19 +0800 Subject: [PATCH 4/9] =?UTF-8?q?Revert=20"fix:=20shiki=E5=9B=9E=E6=BB=9A"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 86c56af83abb8798bf0d67c8f00539b09d07cc57. --- lib/highlighter/index.js | 78 +++++++++++++++++++++++++--------------- 1 file changed, 50 insertions(+), 28 deletions(-) diff --git a/lib/highlighter/index.js b/lib/highlighter/index.js index b7454d2..593d77d 100644 --- a/lib/highlighter/index.js +++ b/lib/highlighter/index.js @@ -1,16 +1,33 @@ const shiki = require('shiki'); -const { renderToHtml, toShikiTheme } = require('shiki'); -const { escapeHTML } = require('hexo-util'); +const { BUNDLED_LANGUAGES, toShikiTheme } = require('shiki'); const appRootPath = require('app-root-path'); const { lex, parse } = require('fenceparser'); const { sleep } = require('deasync'); const { throwWarning } = require('../helpers/utils'); const chalk = require('chalk'); -function defaultCodeBlock(code, lang) { - return `
${lang}${escapeHTML( - code - )}
`; +const styleRE = /]*(style=".*?")/; +const preRE = /^/; +const lineNoRE = /:(no-)?line-numbers(=\d*)?$/; +const defaultLang = 'txt'; + +function cleanup(str, bg) { + let cleanedStr = str.replace( + preRE, + (_, attributes) => `
`
+  );
+
+  if (bg) {
+    cleanedStr = cleanedStr.replace(styleRE, (_, style) =>
+      _.replace(style, bg ? `style="background-color: ${bg}"` : '')
+    );
+  }
+
+  return cleanedStr;
+}
+
+function renderCodeBlock(codeHtml, lang) {
+  return `
${lang}${codeHtml}
`; } function filterIntoShiki( @@ -21,32 +38,36 @@ function filterIntoShiki( ) { const { theme, backgroundColor } = options; - if (highlighter.getLoadedLanguages().includes(lang)) { - // This will return an array of tokens for the provided code. - // A token represents a single part of the code, for example a keyword, a string, a comment, etc. - const tokens = highlighter.codeToThemedTokens(code, lang, theme); - // - // // This will return an HTML string that represents the provided code. - const codeHtml = renderToHtml(tokens, { - bg: backgroundColor ?? highlighter.getBackgroundColor(theme) - }); - - return `
${lang}${codeHtml}
`; - } + lang = lang.replace(lineNoRE, '').toLowerCase() || defaultLang; - if (lang !== '') { - throwWarning( - 'Aurora Code Filtering Warning', - `Code language: ${chalk.cyan(`[${lang}]`)} is not supported.` - ); - } else { - lang = 'plaintext'; + if (lang) { + const langLoaded = highlighter.getLoadedLanguages().includes(lang); + if (!langLoaded && lang !== 'ansi' && lang !== 'txt') { + throwWarning( + 'Aurora Code Filtering Warning', + `Code language: ${chalk.cyan( + `[${lang}]` + )} is not loaded, falling back to '${defaultLang}' for syntax highlighting.` + ); + lang = defaultLang; + } } - return defaultCodeBlock(code, lang); + const codeHtml = highlighter.codeToHtml(code, { + lang, + theme + }); + return cleanup(renderCodeBlock(codeHtml, lang), backgroundColor); } function parseFence(infoString) { + if (!infoString) { + return { + lang: defaultLang, + meta: {} + }; + } + const tokens = lex(infoString); return { @@ -84,7 +105,8 @@ module.exports = (hexo) => { shiki .getHighlighter({ - theme: codeTheme + theme: codeTheme, + langs: [...BUNDLED_LANGUAGES] }) .then((hl) => (highlighter = hl)); @@ -108,4 +130,4 @@ module.exports = (hexo) => { }); }; }); -}; \ No newline at end of file +}; From fe3a03d50b09383ed4e4a8ef535fd1284e54240f Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 1 Nov 2023 12:25:36 +0000 Subject: [PATCH 5/9] chore(release): set `package.json` to 1.0.3 [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## [1.0.3](https://github.com/Tim-Saijun/hexo-plugin-aurora-s/compare/v1.0.2...v1.0.3) (2023-11-01) ### Reverts * Revert "fix: shiki回滚" ([ab679db](https://github.com/Tim-Saijun/hexo-plugin-aurora-s/commit/ab679dbde988d7e915b9da75bb725f52a4c3b015)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 3ecfe82..724602b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.0.3](https://github.com/Tim-Saijun/hexo-plugin-aurora-s/compare/v1.0.2...v1.0.3) (2023-11-01) + + +### Reverts + +* Revert "fix: shiki回滚" ([ab679db](https://github.com/Tim-Saijun/hexo-plugin-aurora-s/commit/ab679dbde988d7e915b9da75bb725f52a4c3b015)) + ## [1.0.2](https://github.com/Tim-Saijun/hexo-plugin-aurora-s/compare/v1.0.1...v1.0.2) (2023-11-01) diff --git a/package.json b/package.json index bb0454d..82bdae2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-plugin-aurora-s", - "version": "1.0.2", + "version": "1.0.3", "description": "Modified plugin for Hexo Aurora theme", "main": "index.js", "keywords": [ From 9adb207004f90e5cfbb2725c2042c2a002328f33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=86=8D=E6=B6=A6?= Date: Wed, 1 Nov 2023 22:18:49 +0800 Subject: [PATCH 6/9] =?UTF-8?q?fix:=20=E6=B7=B7=E6=BB=9A=E5=88=B01.7.0?= =?UTF-8?q?=E4=BB=A5=E4=BD=BF=E7=94=A8primjs=E9=AB=98=E4=BA=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/filters/index.js | 107 ++++++++++++++++++++++++++++++++++++++- lib/generators/index.js | 8 +-- lib/generators/post.js | 10 ++-- lib/generators/search.js | 17 +++---- lib/generators/site.js | 13 ++--- lib/helpers/mapper.js | 4 +- lib/helpers/utils.js | 4 -- lib/highlighter/index.js | 6 ++- 8 files changed, 132 insertions(+), 37 deletions(-) diff --git a/lib/filters/index.js b/lib/filters/index.js index d819e0e..bd390a3 100644 --- a/lib/filters/index.js +++ b/lib/filters/index.js @@ -1,4 +1,107 @@ +const chalk = require('chalk'); +const { throwError } = require('../helpers/utils'); + +const QUOTE_REGEX = + /

:{3}([a-zA-Z0-9]+)\s?([\s\S]*?)(?:<\/p>\n|
)([\s\S]*?)(?:

|
):{3}<\/p>/gm; +const QUOTE_TYPES = ['tip', 'warning', 'danger', 'details']; +const TAG_REGEX = /^<\/?([ul|ol|p]+)>/g; +const BLOCKQUOTE_REGEX = /

\n([\s\S]*?)\n<\/blockquote>/gm; +const QUOTE_LANG = { + en: { + tip: 'TIP', + warning: 'WARNING', + danger: 'WARNING', + details: 'Details' + }, + cn: { + tip: '提示', + warning: '注意', + danger: '特别注意', + details: '隐藏内容' + } +}; +const SVG = { + tip: ` + + + +`, + warning: ` + + + + +`, + danger: ` + + + + +`, + blockquote: ` + + + + + + + + +` +}; + module.exports = function (hexo) { - require('./afterPostRender')(hexo); - require('./beforePostRender')(hexo); + const themeConfig = Object.assign(hexo.theme.config || {}, hexo.config.theme_config); + + if (!themeConfig.site) { + throwError( + 'Aurora Config Error', + `Theme config ${chalk.cyan( + 'site' + )} attribute is missing, please check the theme config template here: https://github.com/auroral-ui/hexo-theme-aurora/blob/main/_config.yml.` + ); + return; + } + + if (!themeConfig.site.language) { + throwError( + 'Aurora Config Error', + `Theme config ${chalk.cyan( + 'site -> language' + )} attribute is missing, please check the theme config template here: https://github.com/auroral-ui/hexo-theme-aurora/blob/main/_config.yml.` + ); + return; + } + + const lang = themeConfig.site.language; + + hexo.extend.filter.register('after_post_render', function (data) { + /** Filter and render Custom Quote Blocks */ + data.content = data.content.replace(QUOTE_REGEX, (matchedQuote, p1, p2, p3) => { + let context, + template = matchedQuote; + if (p1 && QUOTE_TYPES.indexOf(p1) !== -1) { + context = { + type: p1, + title: p2 ? p2 : QUOTE_LANG[lang][p1], + content: TAG_REGEX.test(p3) ? p3 : `

${p3}

` + }; + + if (context.type === 'details') { + template = `
\n${context.title}\n${context.content}\n
`; + } else { + template = `
\n${ + SVG[context.type] + }\n

${context.title}

\n${context.content}\n
`; + } + } + return template; + }); + /** Filter and render BlockQuote */ + data.content = data.content.replace( + BLOCKQUOTE_REGEX, + `
${SVG['blockquote']}$1
` + ); + return data; + }); }; diff --git a/lib/generators/index.js b/lib/generators/index.js index 6d1f0ee..49da49f 100644 --- a/lib/generators/index.js +++ b/lib/generators/index.js @@ -91,6 +91,9 @@ module.exports = function (hexo) { // Updated feature status. configs.theme_config.theme.feature = posts.isFeature; + const siteG = new SiteGenerator(configs); + apiData = siteG.addSiteConfig(apiData); + const categories = new CategoryGenerator(site.categories, site.posts, configs); apiData = categories.addCategories(apiData); @@ -110,12 +113,9 @@ module.exports = function (hexo) { ); apiData = statistic.addStatistics(apiData); - const search = new SearchGenerator(posts.data, configs); + const search = new SearchGenerator(posts.data); apiData = search.addSearchIndex(apiData); - const siteG = new SiteGenerator(configs); - apiData = siteG.addSiteConfig(apiData); - return apiData; } }; diff --git a/lib/generators/post.js b/lib/generators/post.js index a420956..28153c8 100644 --- a/lib/generators/post.js +++ b/lib/generators/post.js @@ -12,20 +12,20 @@ class PostGenerator { featureCapacity = 3; isFeature = true; - constructor(posts, configs, options = { sort: true }) { + constructor(posts, configs) { this.data = posts; this.fullData = posts; this.configs = configs; this.authors = this.configs.theme_config.authors || {}; this.isFeature = this.configs.theme_config.theme.feature; - this.transform(options); + this.transform(); } /** * Transform post data into API formats. * @returns void */ - transform(options = { sort: true }) { + transform() { if (this.count() <= 0) return; let prevPost = {}; @@ -33,9 +33,7 @@ class PostGenerator { let featureIndexes = []; // Used when feature posts is not enough - if (options.sort) { - this.sortByDate(); - } + this.sortByDate(); this.reorderFeaturePosts(); this.data.data.forEach((post, index) => { diff --git a/lib/generators/search.js b/lib/generators/search.js index 0953d2f..50214c6 100644 --- a/lib/generators/search.js +++ b/lib/generators/search.js @@ -1,21 +1,20 @@ -const { searchMapper } = require('../helpers/mapper'); +const { searchMapper } = require('../helpers/mapper') class SearchGenerator { - data = []; - configs = {}; + data = [] - constructor(posts, configs) { - this.data = configs.theme_config.algolia?.enable ? [] : posts.map((post) => searchMapper(post)); + constructor(posts) { + this.data = posts.map(searchMapper) } addSearchIndex(data) { - if (this.data.length <= 0) return data; + if (this.data.length <= 0) return data data.push({ path: 'api/search.json', data: JSON.stringify(this.data) - }); - return data; + }) + return data } } -module.exports = SearchGenerator; +module.exports = SearchGenerator diff --git a/lib/generators/site.js b/lib/generators/site.js index 890c049..8bebff4 100644 --- a/lib/generators/site.js +++ b/lib/generators/site.js @@ -11,7 +11,7 @@ try { `Aurora Plugin fail to get current Aurora Theme version from package location, trying to get from themes folder instead...` ); try { - themePack = require(appRoot + '/themes/aurora/package.json'); + themePack = require(appRoot + '/themes/aurora-s/package.json'); } catch (error) { throwError( 'Aurora Plugin Error', @@ -30,16 +30,13 @@ class SiteGenerator { } addSiteConfig(data) { - const tempConfigs = this.data; + const configs = this.data; // Removed privacy data from site configs - delete tempConfigs.deploy; - delete tempConfigs.server; - tempConfigs.theme_config.algolia = { - enable: this.data.theme_config.algolia?.enable ?? false - }; + delete configs.deploy; + delete configs.server; data.push({ path: 'api/site.json', - data: JSON.stringify(tempConfigs) + data: JSON.stringify(configs) }); return data; } diff --git a/lib/helpers/mapper.js b/lib/helpers/mapper.js index 4799114..7cfaaa0 100644 --- a/lib/helpers/mapper.js +++ b/lib/helpers/mapper.js @@ -36,7 +36,7 @@ function postMapper(post, configs) { feature: post.feature, pinned: post.pinned, text: truncateHTML(abstract, abstractLength), - permalink: `/post/${pathSlug}`, + link: post.link, photos: post.photos, count_time: symbolsCountTime(post.content), categories: post.categories ? postCategoryMapper(post) : [], @@ -106,7 +106,7 @@ function postListMapper(post, configs) { keywords: configs.keywords, cover: post.cover, text: post.text, - permalink: post.permalink, + link: post.link, photos: post.photos, count_time: post.count_time, categories: post.categories, diff --git a/lib/helpers/utils.js b/lib/helpers/utils.js index 0c5bcc1..d41bfff 100644 --- a/lib/helpers/utils.js +++ b/lib/helpers/utils.js @@ -141,10 +141,6 @@ exports.throwError = function (type, msg) { ); }; -exports.throwWarning = function (type, msg) { - console.warn(`${chalk.yellow(`[${type}]`)} ${chalk.white(msg)}`); -}; - exports.throwInfo = function (type, msg) { console.error(`${chalk.blue(`[${type}]`)} ${chalk.white(msg)}`); }; diff --git a/lib/highlighter/index.js b/lib/highlighter/index.js index 593d77d..5bc33d3 100644 --- a/lib/highlighter/index.js +++ b/lib/highlighter/index.js @@ -22,11 +22,12 @@ function cleanup(str, bg) { _.replace(style, bg ? `style="background-color: ${bg}"` : '') ); } - + console.log("cleanup function has been executed."); return cleanedStr; } function renderCodeBlock(codeHtml, lang) { + console.log("renderCodeBlock function has been executed."); return `
${lang}${codeHtml}
`; } @@ -57,6 +58,7 @@ function filterIntoShiki( lang, theme }); + console.log("filterIntoShiki function has been executed."); return cleanup(renderCodeBlock(codeHtml, lang), backgroundColor); } @@ -69,7 +71,7 @@ function parseFence(infoString) { } const tokens = lex(infoString); - + console.log("parseFence function has been executed."); return { lang: tokens.shift() ?? '', meta: parse(tokens) From 709967886612e42994afbb9c8d4e21ab2e5eec5a Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 1 Nov 2023 14:20:07 +0000 Subject: [PATCH 7/9] chore(release): set `package.json` to 1.0.4 [skip ci] MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## [1.0.4](https://github.com/Tim-Saijun/hexo-plugin-aurora-s/compare/v1.0.3...v1.0.4) (2023-11-01) ### Bug Fixes * 混滚到1.7.0以使用primjs高亮 ([9adb207](https://github.com/Tim-Saijun/hexo-plugin-aurora-s/commit/9adb207004f90e5cfbb2725c2042c2a002328f33)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 724602b..e595037 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.0.4](https://github.com/Tim-Saijun/hexo-plugin-aurora-s/compare/v1.0.3...v1.0.4) (2023-11-01) + + +### Bug Fixes + +* 混滚到1.7.0以使用primjs高亮 ([9adb207](https://github.com/Tim-Saijun/hexo-plugin-aurora-s/commit/9adb207004f90e5cfbb2725c2042c2a002328f33)) + ## [1.0.3](https://github.com/Tim-Saijun/hexo-plugin-aurora-s/compare/v1.0.2...v1.0.3) (2023-11-01) diff --git a/package.json b/package.json index 82bdae2..5393a8a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-plugin-aurora-s", - "version": "1.0.3", + "version": "1.0.4", "description": "Modified plugin for Hexo Aurora theme", "main": "index.js", "keywords": [ From 42547ddead7efdbfa3968e92026b0d9a93b3592c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=A8=E5=86=8D=E6=B6=A6?= Date: Wed, 1 Nov 2023 22:48:52 +0800 Subject: [PATCH 8/9] fix: data --- data/cn.yml | 22 ++++++++++++++-------- data/en.yml | 24 +++++++++++++++--------- 2 files changed, 29 insertions(+), 17 deletions(-) diff --git a/data/cn.yml b/data/cn.yml index 80ebfc6..eab5d3d 100644 --- a/data/cn.yml +++ b/data/cn.yml @@ -1,19 +1,25 @@ scripts: - - - - - + - + - + - + - + - + - css: + - + - - plugins: gitalk: - - - - + - + - valine: - - - - + - + - twikoo: - - + - waline: - - + - diff --git a/data/en.yml b/data/en.yml index b2f91df..69596a8 100644 --- a/data/en.yml +++ b/data/en.yml @@ -1,19 +1,25 @@ scripts: - - - - - - + - + - + - + - + - + - + - css: + - + - - plugins: gitalk: - - - - + - + - valine: - - - - + - + - twikoo: - - + - waline: - - + - From a3bea54b76f043c8ccb208bab8af2d75bd5ef72d Mon Sep 17 00:00:00 2001 From: semantic-release-bot Date: Wed, 1 Nov 2023 14:49:32 +0000 Subject: [PATCH 9/9] chore(release): set `package.json` to 1.0.5 [skip ci] ## [1.0.5](https://github.com/Tim-Saijun/hexo-plugin-aurora-s/compare/v1.0.4...v1.0.5) (2023-11-01) ### Bug Fixes * data ([42547dd](https://github.com/Tim-Saijun/hexo-plugin-aurora-s/commit/42547ddead7efdbfa3968e92026b0d9a93b3592c)) --- CHANGELOG.md | 7 +++++++ package.json | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e595037..2d7b673 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +## [1.0.5](https://github.com/Tim-Saijun/hexo-plugin-aurora-s/compare/v1.0.4...v1.0.5) (2023-11-01) + + +### Bug Fixes + +* data ([42547dd](https://github.com/Tim-Saijun/hexo-plugin-aurora-s/commit/42547ddead7efdbfa3968e92026b0d9a93b3592c)) + ## [1.0.4](https://github.com/Tim-Saijun/hexo-plugin-aurora-s/compare/v1.0.3...v1.0.4) (2023-11-01) diff --git a/package.json b/package.json index 5393a8a..c29e72a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "hexo-plugin-aurora-s", - "version": "1.0.4", + "version": "1.0.5", "description": "Modified plugin for Hexo Aurora theme", "main": "index.js", "keywords": [