Skip to content

Commit

Permalink
clean up themes & plugins (#2163)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenjoezhang authored Apr 10, 2024
1 parent d2192c7 commit 16b6fe3
Show file tree
Hide file tree
Showing 61 changed files with 55 additions and 97 deletions.
14 changes: 1 addition & 13 deletions scripts/validate.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,9 @@ async function validateTheme() {

const themeData = hexo.locals.get('data').themes;
const themes = new Set();
const duplicate = new Set();
for (const theme of themeData) {
const name = theme.name.toLocaleLowerCase();
if (themes.has(name)) {
duplicate.add(name);
} else {
themes.add(name);
}
}

if (duplicate.size > 0) {
message.push(`Theme name: ${Array.from(duplicate)} is duplicated.`);
isValidationPassed = false;
} else {
message.push('Theme name validation passed.');
themes.add(name);
}

const screenshotsPath = join(hexo.source_dir, 'themes/screenshots');
Expand Down
2 changes: 1 addition & 1 deletion source/_data/plugins/hexo-bilibili-card.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: Insert a bilibili card into your page or article.
link: https://github.com/MaxChang3/hexo-bilibili-card
link: https://github.com/maxchang3/hexo-bilibili-card
tags:
- bilibili
- card
2 changes: 1 addition & 1 deletion source/_data/plugins/hexo-filter-indicate-the-source.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: Insert informations that can indicate the source of blog posts.
link: https://github.com/JamesPan/hexo-filter-indicate-the-source
link: https://github.com/jamespan/hexo-filter-indicate-the-source
tags:
- filter
- indicate-the-source
Expand Down
10 changes: 0 additions & 10 deletions source/_data/plugins/hexo-github.yml

This file was deleted.

2 changes: 1 addition & 1 deletion source/_data/plugins/hexo-info-api.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: Simple api serve for Hexo. Can custom allowOrigin. (Build with generator)
link: https://github.com/0ojixueseno0/hexo-info-api
link: https://github.com/jz0ojiang/hexo-info-api
tags:
- api
- json
Expand Down
2 changes: 1 addition & 1 deletion source/_data/plugins/hexo-markdown-it-tippy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description: >-
A hexo plugin to add tooltips to your blog posts using tippy. Supporting rich
text. This is the markdown-it edition.
link: https://github.com/RichardYan314/hexo-markdown-it-tippy
link: https://github.com/Ritsuka314/hexo-markdown-it-tippy
tags:
- tooltip
- hint
Expand Down
2 changes: 1 addition & 1 deletion source/_data/plugins/hexo-markmap.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: Innsert a mindmap by markdown in your hexo blog. 在你的hexo博客中插入思维导图。
link: https://github.com/MaxChang3/hexo-markmap
link: https://github.com/maxchang3/hexo-markmap
tags:
- markmap
- mindmap
Expand Down
2 changes: 1 addition & 1 deletion source/_data/plugins/hexo-minify.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: Hexo resources compress HTML,CSS,JS | Hexo资源压缩,支持HTML、JS、CSS
link: https://github.com/lete114/hexo-minify
link: https://github.com/Lete114/hexo-minify
tags:
- compress
- minify
Expand Down
2 changes: 1 addition & 1 deletion source/_data/plugins/hexo-pandoc-tippy.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description: >-
A hexo plugin to add tooltips to your blog posts using tippy. Supporting rich
text. This is the pandoc edition.
link: https://github.com/RichardYan314/hexo-pandoc-tippy
link: https://github.com/Ritsuka314/hexo-pandoc-tippy
tags:
- tooltip
- hint
Expand Down
2 changes: 1 addition & 1 deletion source/_data/plugins/hexo-reference-plus.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description: >-
A hexo plugin to support simply reference marked and footnotes by markdown.
Auto serial number, tooltip, and more
link: https://github.com/MaxChang3/hexo-reference-plus
link: https://github.com/maxchang3/hexo-reference-plus
tags:
- footnotes
- reference
Expand Down
2 changes: 1 addition & 1 deletion source/_data/plugins/hexo-renderer-pandoc.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description: >-
A pandoc-flavored-markdown renderer for Hexo. Also supports rendering textile,
reStructedText, etc.
link: https://github.com/wzpan/hexo-renderer-pandoc
link: https://github.com/hexojs/hexo-renderer-pandoc
tags:
- renderer
- pandoc
Expand Down
2 changes: 1 addition & 1 deletion source/_data/plugins/hexo-renderer-unified.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: Markdown renderer plugin for Hexo - based on Unified.
link: https://github.com/StaloneLab/hexo-renderer-unified
link: https://github.com/LikaKavkasidze/hexo-renderer-unified
tags:
- renderer
- markdown
Expand Down
2 changes: 1 addition & 1 deletion source/_data/plugins/hexo-ruby-character.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description: >-
Ruby character tag for Hexo, like <ruby>博客<rp> (</rp><rt>bó kè</rt><rp>)
</rp></ruby>.
link: https://github.com/JamesPan/hexo-ruby-character
link: https://github.com/jamespan/hexo-ruby-character
tags:
- tag
- ruby-character
Expand Down
2 changes: 1 addition & 1 deletion source/_data/plugins/hexo-runcode.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: Running js html css code in post page
link: https://github.com/neoxone2/hexo-runcode
link: https://github.com/EasonWangs/hexo-runcode
tags:
- runcode
- tag
Expand Down
2 changes: 1 addition & 1 deletion source/_data/plugins/hexo-seo-autopush.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description: >-
Daily automatic submission of urls to Baidu and Google Bing|每天自动提交site
url到百度、谷歌、必应
link: https://github.com/lete114/hexo-seo-autopush
link: https://github.com/Lete114/Hexo-SEO-AutoPush
tags:
- baidu
- bing
Expand Down
2 changes: 1 addition & 1 deletion source/_data/plugins/hexo-tag-chart.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: Insert simple and flexible Chart in Hexo site by using tags.
link: https://github.com/Shen-Yu/hexo-tag-chart
link: https://github.com/shen-yu/hexo-tag-chart
tags:
- tag
- chart
Expand Down
2 changes: 1 addition & 1 deletion source/_data/plugins/hexo-tag-config.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
description: A hexo tag for insert configuration file values to your post/page
link: https://github.com/YoshinoriN/hexo-tag-config
link: https://github.com/yoshinorin/hexo-tag-config
tags:
- config
2 changes: 1 addition & 1 deletion source/_data/plugins/hexo-tag-kbd.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: Displays the keycaps in your post/page.
link: https://github.com/yuichi555/hexo-tag-kbd
link: https://github.com/amgsk/hexo-tag-kbd
tags:
- tag
- keycaps
2 changes: 1 addition & 1 deletion source/_data/plugins/hexo-tag-niconico.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: Embed NicoNico seiga/douga in Hexo posts/pages.
link: https://github.com/yuichi555/hexo-tag-niconico
link: https://github.com/amgsk/hexo-tag-niconico
tags:
- tag
- niconico
Expand Down
5 changes: 0 additions & 5 deletions source/_data/plugins/hexo-tag-scode.yml

This file was deleted.

2 changes: 1 addition & 1 deletion source/_data/plugins/hexo-vtuber-banner.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: Add a Vtuber or banner to your blog | 添加vtuber/vup横幅card到你的博客
link: https://github.com/MIMONATCH/hexo-vtuber-banner
link: https://github.com/midou-midou/hexo-vtuber-banner
tags:
- vtuber
- vup
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/A-Quark.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: A simple but powerful theme for Hexo.
link: https://github.com/pcrab/hexo-theme-quark
link: https://github.com/Pcrab/hexo-theme-quark
preview: https://blog.pcrab.xyz/
tags:
- 中文
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/Alog.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: Alog is a simple and elegant hexo theme.
link: https://github.com/vkm0303/hexo-theme-alog
link: https://github.com/FE-Alog/hexo-theme-alog
preview: https://akino.icu
tags:
- Elegant
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/Anisina.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: A support qiniu image cdn , simple responsive theme
link: https://github.com/haojen/hexo-theme-Anisina
link: https://github.com/Haojen/hexo-theme-Anisina
preview: http://haojen.github.io/
tags:
- qiniu_cdn
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/Ayer.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: A Clean and Beautiful Theme for Hexo, also responsive.
link: https://github.com/Shen-Yu/hexo-theme-ayer
link: https://github.com/shen-yu/hexo-theme-ayer
preview: https://shen-yu.gitee.io/
tags:
- 中文
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/Cactus Light.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
description: >-
The light version of Cactus Dark, a responsive, light and simple theme for a
personal webpage
link: https://github.com/gabithume/cactus-light
link: https://github.com/GabiThume/cactus-light
preview: http://gabithu.me/
tags:
- responsive
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/Candelas.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: The next generation of the hexo default theme Landscape.
link: https://github.com/DukeLuo/hexo-theme-candelas
link: https://github.com/dukeluo/hexo-theme-candelas
preview: https://candelas.shaiwang.life/
tags:
- 中文
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/Concise-theme.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: A simple theme based on theme landscape
link: https://github.com/Sanonz/hexo-theme-concise
link: https://github.com/sanonz/hexo-theme-concise
preview: https://sanonz.github.io/
tags:
- simple
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/Energy.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: A special yellow Hexo theme, hope you'd like the color and the cute animation.
link: https://github.com/tong-h/hexo-theme-energy
link: https://github.com/Tong-H/hexo-theme-energy
preview: https://tong-h.github.io/
tags:
- Elegant
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/Gandalfr.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: Yet, just another blog theme, based on theme apollo
link: https://github.com/D0n9X1n/hexo-theme-Gandalfr
link: https://github.com/D0n9X1n/hexo-theme-gandalfr
preview: https://mhexo.github.io/
tags:
- Responsive
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/Hive.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: a minimalist theme
link: https://github.com/farnaziifz/hive-hexo
link: https://github.com/Farnaziifz/hive-hexo
preview: https://farnaziifz.github.io/
tags:
- minimalist
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/Jelly.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: A wonderful, elegant and eye-protected light theme for Hexo.
link: https://github.com/preccrep/hexo-theme-jelly
link: https://github.com/kfein/hexo-theme-jelly
preview: https://preccrepad.github.io
tags:
- 中文
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/Kaze.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: A simple, responsive and modern Hexo theme
link: https://github.com/theme-kaze/hexo-theme-Kaze
link: https://github.com/theme-kaze/hexo-theme-kaze
preview: https://demo.theme-kaze.top
tags:
- simple
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/Klise.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: A simple, concise, and fast theme for Hexo.
link: https://github.com/dewjohn/hexo-theme-klise
link: https://github.com/dewjohn/hexo-theme-Klise
preview: https://dewjohn.github.io/
tags:
- 中文
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/Laughing.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: A lightweight and focus on the theme of the reading experience
link: https://github.com/BoizZ/hexo-theme-laughing
link: https://github.com/boizz/hexo-theme-laughing
preview: http://lalala.lol
tags:
- responsive
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/Life.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: 记录生活,为写作而生!
link: https://github.com/WeicMa/Hexo-Theme-Life
link: https://github.com/machengwei1024/Hexo-Theme-Life
preview: https://github.com/WeicMa/Hexo-Theme-Life
tags:
- 多配色
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/Linear.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: A dream hexo theme for developers.
link: https://github.com/syy11cn/hexo-theme-linear
link: https://github.com/yysuen/hexo-theme-linear
preview: https://blog.syy11.cn/
tags:
- Chinese
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/LiveForCode.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: A beautiful theme for Hexo.
link: https://github.com/first19326/hexo-liveforcode
link: https://github.com/first19326/Hexo-LiveForCode
preview: https://notes.worstone.cn
tags:
- Beautiful
Expand Down
8 changes: 0 additions & 8 deletions source/_data/themes/Lous.yml

This file was deleted.

2 changes: 1 addition & 1 deletion source/_data/themes/MengD.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: A simple, elegant, and beautiful Hexo theme
link: https://github.com/lete114/hexo-theme-MengD
link: https://github.com/Lete114/Hexo-Theme-MengD
preview: https://blog.lete114.top/
tags:
- Responsive
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/Miracle.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: A simple single-column theme for Hexo.
link: https://github.com/hifun-team/hexo-theme-miracle
link: https://github.com/ocoke/hexo-theme-miracle
preview: https://miracle-demo.now.sh
tags:
- simple
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/Nayo.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: A clean theme
link: https://github.com/Lemonreds/hexo-theme-Nayo
link: https://github.com/Lemonreds/hexo-theme-nayo
preview: https://lemonreds.github.io/
tags:
- white
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/Nlvi.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: A simple theme named Nlvi
link: https://github.com/ColMugX/hexo-theme-Nlvi
link: https://github.com/colmugx/hexo-theme-Nlvi
preview: https://colmugx.github.io/banderole/
tags:
- horizontal&vertical
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/Primer.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: Github Style Theme
link: https://github.com/justpsvm/hexo-theme-primer
link: https://github.com/yumexupanic/hexo-theme-primer
preview: https://yumexupanic.github.io/hexo-theme-primer/
tags:
- simple
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/Solitude.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: 一款优雅的 Hexo 主题,设计师风格。
link: https://github.com/wleelw/Hexo-theme-solitude
link: https://github.com/valor-x/hexo-theme-solitude
preview: https://blog.wzsco.top/
tags:
- 优雅
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/Toki.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: A simple but elegant theme
link: https://github.com/Vevlins/hexo-theme-toki
link: https://github.com/vevlins/hexo-theme-toki
preview: https://vevlins.github.io/
tags:
- one_column
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/Type.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: A material design hexo theme
link: https://github.com/aiokr/hexo-theme-type
link: https://github.com/aiokr/Hexo-Theme-Type
preview: https://blog.itypen.com/
tags:
- material
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/Typography.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: Rediscover the beauty of typography
link: https://github.com/SumiMakito/hexo-theme-typography
link: https://github.com/sumimakito/hexo-theme-typography
preview: https://blog.keep.moe
tags:
- simple
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/Yuzu.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: A simple black/white theme for novel reading.
link: https://github.com/cerallin/hexo-theme-yuzu
link: https://github.com/Cerallin/hexo-theme-yuzu
preview: http://cerallin.github.io
tags:
- 中文
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/artemisX.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: A simple theme based on artemis, add new feature and new style
link: https://github.com/wwwuxt/hexo-theme-artemisX
link: https://github.com/tamnxt/hexo-theme-artemisX
preview: https://github.com/wwwuxt/hexo-theme-artemisX
tags:
- simple
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/bubuzou.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: A theme inspired by apollo
link: https://github.com/bulandent/hexo-theme-bubuzou
link: https://github.com/Bulandent/hexo-theme-bubuzou
preview: http://bubuzou.com/
tags:
- 中文
Expand Down
2 changes: 1 addition & 1 deletion source/_data/themes/cold.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
description: A super cool theme
link: https://github.com/mintsweet/hexo-theme-cold
link: https://github.com/mintsweet/hexo-theme-mints
preview: http://www.yujunren.com/blog/
tags:
- cool
Expand Down
Loading

0 comments on commit 16b6fe3

Please sign in to comment.