Skip to content

Commit

Permalink
V1.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
f-dong committed Aug 27, 2024
1 parent e69030c commit de34db1
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hexo-theme-minimalism",
"version": "1.4.0",
"version": "1.4.1",
"private": false,
"description": "a minimalist Hexo theme that is simple yet elegant, enabling your blog content to shine. Its powerful features also help you create a personalized blog that truly stands out.",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions scripts/events/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ function merge(target, source) {
hexo.on('generateBefore', () => {
merge(hexo.theme.config, hexo.config.theme_config);

console.log(hexo.config.syntax_highlighter)

Check failure on line 23 in scripts/events/config.js

View workflow job for this annotation

GitHub Actions / lint

Missing semicolon
// hexo v7.0.0 新的配置改动
if (hexo.config.syntax_highlighter) {
if (hexo.config.syntax_highlighter === 'prismjs') {
Expand Down
4 changes: 2 additions & 2 deletions source/style/main.styl
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@

@import "_core/night-node" if hexo-config('dark_theme.enable');

if hexo-config('prismjs')
if hexo-config('prismjs.enable')
pre[class*=language-] {
padding: 0 !important;
margin: 0 !important;
margin: 0 0 16px 0 !important;
}
pre[class*=language-] code {
color: #476582;
Expand Down

0 comments on commit de34db1

Please sign in to comment.