Coder Social home page Coder Social logo

evannotfound / hexo-theme-redefine Goto Github PK

View Code? Open in Web Editor NEW
1.4K 1.4K 107.0 43.85 MB

Simplicity in Speed, Purity in Design: Redefine Your Hexo Journey.

Home Page: https://redefine.ohevan.com

License: GNU General Public License v3.0

EJS 15.76% JavaScript 47.85% Stylus 29.33% CSS 7.06%
beautiful-theme blog blog-theme hexo hexo-blog hexo-theme hexo-theme-redefine simple-theme theme

hexo-theme-redefine's Introduction

console.log("Hello 👋");

//zh

CA 🇨🇦 学生。

前端/全栈开发,UI/UX 设计

  • HTML, CSS, Javascript
  • React, NextJS
  • GSAP, Framer Motion
  • ExpressJS, FastAPI
  • Sketch, Figma

如需了解更多关于我的信息和作品,请访问:

来都来了,Github 点个关注再走呗~

我的爱发电:https://afdian.net/a/evannotfound

//en

🇨🇦 Student

I mainly do front-end/full-stack development, UI/UX design:

  • HTML, CSS, Javascript
  • React, NextJS
  • GSAP, Framer Motion
  • ExpressJS, FastAPI
  • Sketch, Figma

For more information about me and my projects, please visit my portfolio and blogs:

If you appreciate my work, feel free to follow me on Github or donate. <3

//fr

Un étudiant au Canada 🇨🇦🥐🥐🥐.

Je fais principalement du développement front-end et du design UI/UX :

  • HTML, CSS, Javascript
  • React, NextJS
  • GSAP, Framer Motion
  • ExpressJS, FastAPI
  • Sketch, Figma

Pour plus d'informations sur moi et mes projets, veuillez visiter mon portfolio et mon blog :

Si vous appréciez mon travail, n'hésitez pas à me suivre sur Github ou à faire un don. <3

GitHub Stats

Evan's GitHub Stats

Evan's Top Languages

Evan's GitHub Trophies

Visitor Count

hexo-theme-redefine's People

Contributors

anzai249 avatar carefreemontage avatar ching367436 avatar dwgoing avatar dzvision avatar evannotfound avatar freshwlnd avatar iglov avatar jiangwen5945 avatar krazyu avatar minecreeper86 avatar oxnme avatar rayalto avatar ryousy avatar shawn0915 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

hexo-theme-redefine's Issues

建议

优化一下“标签”页面和“分类”页面(类似于next的效果)

[功能建议] 文章日期可以选择只显示日期不显示时间以及增加文章更新时间的建议

1. 文章日期含时间显示问题

功能概述
当我的文章markdown只是使用

date: 2023-08-24

的方式时,他会显示2023-08-24 00:00:00

期望显示
我期望是他可以只显示2023-08-24.
例如从_config.redefine文件修改,或者自动识别md文档,当有时间的时候有,没有时间的时候就没有。

图片描述
Datetime

2. 文章日期更新显示

功能概述
希望可以增加文章更新的时间。无论是在文章上面展示还是在下面展示,都行,有就可以了。

date: 2023-01-24
updated: 2023-02-16

图片描述
无图

[功能建议] 段落换行

功能概述
在Markdown语法中,是使用一个空行来表示重新开始一个段落
image

但是在代码块、列表等特殊格式下,不管多少个空行似乎都无效,这就导致下一段落的文字紧贴着上一段代码,不是很美观

  1. redefine代码块
    image
  2. 官方主题代码块
    image
  3. redefine列表
    image
  4. 官方主题列表
    image

图片描述
可选,可以用你的毕加索画作

[BUG] 数学公式渲染问题

在使用行内公式时,用 hexo-renderer-marked+hexo-filter-mathjax 组合渲染出的行内数学公式会自动吃掉公式前后的空格,有什么好的解决方法吗 QwQ

[功能建议]可否更新页面布局的自定义?

功能概述
如文章页面非单列排版过于单一,建议提供多种布局类型,或开放用户自定义的布局选项,单列的文章布局实在过于单一,还可添加一些花哨的样式。

[功能建议] 折叠模块优化版式

问题概述

折叠模块作次级标题

当我想使用折叠模块作为标题时,右侧目录会将折叠模块内的文本也一并作标题

折叠模块内部标题及内容

折叠模块内想放入次级标题,这时文本格式出错

需求概述

支持将折叠模块(其他模块)作为标题

模块内部标题及内容格式的优化

图片描述

1
2
3

[BUG] Waline评论不显示

Waline 评论不显示,已正确配置且域名从 vercel 原生域名已 CNAME 到个人域名排除被q的情况,其他主题仍可正常显示

[BUG] 折叠块异常显示

居然显示了 HTML 的语法
image
用的就是文档中的代码,关于 页面的 front=matter 的如下:
image

自定义头像和logo默认的图片被覆盖

image

这是主题代码里面的images,如果在自己的博客项目中 source/images 添加同名文件,会被主题库的覆盖。(这个覆盖行为应该是hexo 框架自身的逻辑?)

如下:

image

建议主题库 images 使用其他的路径,或者在文档中说明一下这些文件名被占用。

{
    "dependencies": {
    "hexo": "^6.3.0",
    "hexo-generator-archive": "^2.0.0",
    "hexo-generator-category": "^2.0.0",
    "hexo-generator-index": "^3.0.0",
    "hexo-generator-searchdb": "^1.4.1",
    "hexo-generator-tag": "^2.0.0",
    "hexo-renderer-ejs": "^2.0.0",
    "hexo-renderer-marked": "^6.0.0",
    "hexo-renderer-stylus": "^2.1.0",
    "hexo-server": "^3.0.0",
    "hexo-theme-redefine": "^0.4.5"
  }
}

Gitalk 样式代码语法错误 expected "}", got ";"

"dependencies": {
    "hexo": "^6.3.0",
    "hexo-asset-img": "^1.0.0",
    "hexo-generator-archive": "^2.0.0",
    "hexo-generator-category": "^2.0.0",
    "hexo-generator-index": "^3.0.0",
    "hexo-generator-searchdb": "^1.4.1",
    "hexo-generator-tag": "^2.0.0",
    "hexo-renderer-ejs": "^2.0.0",
    "hexo-renderer-marked": "^6.0.0",
    "hexo-renderer-stylus": "^2.1.0",
    "hexo-server": "^3.0.0",
    "hexo-theme-redefine": "^0.4.5"
  }
$ hexo -v
INFO  Validating config
hexo: 6.3.0
hexo-cli: 4.3.0
os: darwin 20.6.0 11.7.1

node: 18.12.1
v8: 10.2.154.15-node.12
uv: 1.43.0
zlib: 1.2.11
brotli: 1.0.9
ares: 1.18.1
modules: 108
nghttp2: 1.47.0
napi: 8
llhttp: 6.0.10
openssl: 3.0.7+quic
cldr: 41.0
icu: 71.1
tz: 2022b
unicode: 14.0
ngtcp2: 0.8.1
nghttp3: 0.7.0

_config.redefine.yml

comment:
  enable: true
  use: gitalk # values: waline | gitalk | twikoo

  # Waline
  # See: https://waline.js.org/guide/get-started.html
  waline:
    serverUrl:  # Waline server url(vercel) example: https://example.example.com
    lang: zh-CN # Waline language, default: zh-CN. See: https://waline.js.org/guide/client/i18n.html

  # Gitalk
  # See: https://github.com/gitalk/gitalk
  gitalk:
    github_id: # GitHub repo owner
    repository: # Repository name to store issues
    client_id: # GitHub Application Client ID
    client_secret: # GitHub Application Client Secret

运行时语法错误

$ hexo server
INFO  Validating config
INFO  Start processing
INFO  Hexo is running at http://localhost:4000/ . Press Ctrl+C to stop.
ERROR Asset render failed: css/style.css
ParseError: /Volumes/Project/attson-blog/node_modules/hexo-theme-redefine/source/css/layout/_partial/comment/gitalk.styl:22:26
   18|   &:after {
   19|     content " "
   20|     display table
   21|   }
   22|   &:after { clear both; }
--------------------------------^
   23| }
   24| em($px, $base-size = $gt-size-base)
   25|   u = unit($px)

expected "}", got ";"

[功能建议] 插入音乐元素

非常抱歉,麻烦您了,咨询下,我尝试使用我自己写的音乐网站插入到Directory目录中,自己网站上的CSS和您的似乎是冲突的,会造成乱码的情况,并且我测试使用hexo-tag-aplayer也会显示出现异常情况,需要刷新后正常,是不兼容还是不支持呢?
(想将自己的音乐index直接插入到目录中)
image
这似乎和我的预期不符
image

[BUG] 代码块使用simple样式后,折叠显示异常

提交前检查单

  • 已经尝试执行 hexo clean,问题仍然存在

Bug 描述

  1. 代码块使用simple样式后,折叠显示异常
    image
  2. 这是一个建议,感觉代码块的标题与代码间距有点奇怪,左右既没有和行号对齐,也没和代码对齐,上下距离代码间距有点近了
    image

复现方法
折叠代码块

预期结果
在分栏里折叠是正常的,可能是因为前后背景同色看不出来
image

截图
已附上

电脑(请填写以下信息):

  • 操作系统:Windows 11
  • 浏览器 Chrome
  • 版本 108

移动端(请填写以下信息):

  • 设备:[例如 iPhone 14]
  • 操作系统:[例如 iOS16.1]
  • 浏览器 [例如 Chrome, Safari]
  • 版本 [例如 108]

其他
如有其他内容,请提供

字体加载存在问题

@font-face {
font-family: 'Optima';
font-style: normal;
font-weight: normal;
src: local('Optima'), url('/fonts/OPTIMA.woff') format('woff');
}


@font-face {
font-family: 'Optima Italic';
font-style: italic;
font-weight: normal;
src: local('Optima Italic'), url('/fonts/Optima_Italic.woff') format('woff');
}


@font-face {
font-family: 'Optima Medium';
font-style: normal;
font-weight: normal;
src: local('Optima Medium'), url('/fonts/Optima Medium.woff') format('woff');
}


@font-face {
font-family: 'Optima Bold';
font-style: normal;
font-weight: bold;
src: local('Optima Bold'), url('/fonts/OPTIMA_B.woff') format('woff');
}

内部字体无法正常加载,在我之前反馈的环境中,会从根目录读取字体而不是blog

[功能建议] 相关文章

功能概述

标签外挂 Note (Bootstrap Callout)

希望能添加该功能,否则移植主题的时候会由于部分代码不识别报错,大量修改笔记代码太麻烦。

描述

type: 'unknown block tag: note'

[BUG] 代码缩进问题

四格缩进,在网页中显示的却像八格一样,悲
image
奇妙的是,也有正常的:
image
求罗老师解决qwq

menu

The theme is very good, but can you support the drop-down menu? thanks 🎈

[BUG] 文章并没有按照sticky属性大小进行排列

提交前检查单

  • [已经尝试执行 hexo clean,问题仍然存在]
  • [已经更新到主题最新版本,详见 官方文档 #更新]
  • [已经确认同步了主题配置文件]

Bug 描述
在文章的Front Matter中按照帮助文档中所说设置了sticky属性,但是发现实际上文章并没有按照sticky属性大小进行排列,而是按照文章发布时间进行排序的.

复现方法
复现该 Bug 的步骤:

  • 添加多个sticky值不同的文章
  • 进入博客首页

预期结果
按sticky属性大小顺序进行排列显示

截图

电脑:

  • 操作系统:[Windows 10]
  • 浏览器 [Edge]
  • 版本 [ 111.0.1661.44]

移动端:

  • 设备:[例如 Radmi K40 Gaming]
  • 操作系统:[MIUI 12.5.8]
  • 浏览器 [夸克]
  • 版本 [6.2.0.245]

其他
如有其他内容,请提供

程式碼區塊問題

作者您好!您的主題非常優秀且美觀
我有個問題是關於「程式碼區塊」的樣式
我設置了mac 但沒有辦法顯示跟您的一樣

5956EA67-7D0D-41D6-B585-98303025FDD7
如圖。

[功能建议] 允许更改首页副标题打字机速度

功能概述
允许在Redefine Config中更改首页打字机速度
如下:

first_screen:
    enable: true
    .......
    title: Theme Redefine # the title in the middle of the first screen. HTML supported (e.g. svg html code of your logo)
    subtitle: 
      enable: false
      list: ['Redefine Your Writing‘, 'Random Stuff']
      speed: 100 # The speed of the typewriter, in letter per ms
    ...

[BUG] 文章头图thumbnail处理相对路径问题

提交前检查单

  • 已经尝试执行 hexo clean,问题仍然存在

Bug 描述
清晰地描述,请提供

  • hexo 根目录的网站配置文件 _config.yml
  • 主题配置文件 _config.redefine.yml_config.yml 中有关的项目。如果有敏感信息请打码(替换一些字符

文章头图thumbnail无法正确处理相对路径

复现方法
复现该 Bug 的步骤:

// 我的图片会在 site://p/asus-ac68u-shadowsocks/bg.jpeg 下(markown内的图片也是在这里)

_post 目录层级

├── asus-ac68u-shadowsocks
 │   └── bg.jpeg
├── asus-ac68u-shadowsocks.md

文章头图使用相对地址

---
...
thumbnail: "p/asus-ac68u-shadowsocks/bg.jpeg"
---

时,在首页列表能正确展示图片,文章详情图片错误

---
...
thumbnail: "p/asus-ac68u-shadowsocks/bg.jpeg"
---

时,在文章详情图片能正确展示图片,首页列表图片错误

预期结果
该功能本来应该是怎么样的

在两块都能正确处理相对路径

截图
如果可以,请添加截图以帮助解释您的问题。

image

电脑(请填写以下信息):

  • 操作系统:[例如 macOS, Windows]
  • 浏览器 [例如 Chrome, Safari]
  • 版本 [例如 108]
    Chrome macOS

移动端(请填写以下信息):

  • 设备:[例如 iPhone 14]
  • 操作系统:[例如 iOS16.1]
  • 浏览器 [例如 Chrome, Safari]
  • 版本 [例如 108]

其他
如有其他内容,请提供

hexo: 6.3.0
redefine: 1.1.6

部署问题

我把网站部署在了github.io上,当然他有一个独立的仓库(user.github.io/blog类似这样,blog是独立的仓库),我在访问的时候发现,主题的资源文件从根目录获得而不是blog/下的资源目录,请问应该怎么解决

[BUG] pjax设置会与强制HTTPS冲突,因为XMLHttpRequest导致的block:mixed-content

提交前检查单

  • 已经尝试执行 hexo clean,问题仍然存在

Bug 描述
控制台出现报错,导致菜单无法跳转
The page at 'https://xxxx' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://xxxx/xxx'. This request has been blocked; the content must be served over HTTPS.

复现方法
Github Pages设置域名,使用CloudFlare托管项目并开启强制HTTPS,pjax设置

pjax:
  enable: true

访问网站,点击网站菜单栏无法跳转,控制台报错
The page at 'https://xxxx' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://xxxx'. This request has been blocked; the content must be served over HTTPS.
造成部分页面跳转错误,关闭该设置回恢复正常

预期结果
强制HTTPS不会因为XMLHttpRequest导致页面跳转错误

电脑(请填写以下信息):

  • 操作系统:Ubuntu
  • 浏览器 Chrome

其他
偶然发现不知道算不算是BUG

[Question]新版本部署后网站一片空白

提交前检查单

  • 已经尝试执行 hexo clean,问题仍然存在

Bug 描述
清晰地描述,请提供

  • hexo 根目录的网站配置文件 _config.yml
  • 主题配置文件 _config.redefine.yml_config.yml 中有关的项目。如果有敏感信息请打码(替换一些字符

只有升级后才会出现该问题,升级前原版本为1.1.12,升级1.1.13以上版本以后网站的源代码一片空白
nodejs版本为16

# ---------------------------------------------------------------------------------------
#  Your basic info
# ---------------------------------------------------------------------------------------
base_info:
  title: # Site title
  author:  # Author name
  url: # Site url
  # Logo image (You can use local image, image external link or don’t fill)
  logo_img: # logo image on the left of the navigation bar

# ---------------------------------------------------------------------------------------
# Theme style settings
# ---------------------------------------------------------------------------------------
style:
  # Theme primary color
  primary_color: "#005080"

  # Avatar (You can use local image or image external link)
  avatar: /images/logo.jpg # avatar of the author

  # Favicon (You can use local image or image external link)
  favicon: /images/logo1.png # favicon of the site

  # Article image align position
  article_img_align: center # value: left | center

  # Right side width
  right_side_width: 210px #sidebar width, for toc

  # Content area max width
  content_max_width: 1000px #content max width, for article

  #navigation bar background color (from left to right)
  nav_color: 
    left: "#f78736" #left side 
    right: "#367df7"  #right side
    transparency: 35 #percent (10-99)

  # Mouse hover
  hover:
    shadow: true # shadow effect when the mouse hover
    scale: false # scale effect when the mouse hover

  # First screen
  first_screen:
    enable: true
    background_image:
      light: /images/light-01.jpg # background image of the first screen, use relative path or external link (if your website is in subdirectory, use external link)
      dark: /images/99230581_p0_zip.png # background image of the first screen, use relative path or external link (if your website is in subdirectory, use external link)
    title_color:
      light: "#fff" # first screen title color (light mode)
      dark: "#d1d1b6" # first screen title color (dark mode)
    description:  # the title in the middle of the first screen. HTML supported (e.g. svg html code of your logo)

  # Scroll style settings
  scroll:
    progress_bar: # reading progress bar
      enable: true 
    percent: # reading progress percent
      enable: true

# ---------------------------------------------------------------------------------------
# Social contact link
# ---------------------------------------------------------------------------------------
social_contact: # social contact icons in the first screen, you can add more by using fontawesome icon names
  enable: true
  links:
    github:  # your GitHub URL
    instagram: # your Instagram URL
    zhihu:  # your ZhiHu URL
    twitter:  # your twitter URL
    email:  # your email
    # ...... # you can add more

# ---------------------------------------------------------------------------------------
# Navigation menu
# ---------------------------------------------------------------------------------------
menu: #you can customize, i18n files are in the theme's languages folder. fa-regular recommended
  Home: 
    path: / 
    icon: fa-regular fa-house # can be empty
  Archives: 
    path: /archives 
    icon: fa-regular fa-archive # can be empty
  Links: 
    path: /links
    icon: fa-regular fa-link
  # ......
  # Status: 
  #   path: https://status.evanluo.top/
  #   icon: fa-regular fa-chart-bar
  # About: 
  #   icon: fa-regular fa-user
  #   submenus:
  #     Me: /about
  #     Github: https://github.com/EvanNotFound/hexo-theme-redefine
  #     Blog: https://www.evanluo.top
  #     Friends: /friends
  # Links: 
  #   icon: fa-regular fa-link
  #   submenus:
  #     Link1: /link1
  #     Link2: /link2
  #     Link3: /link3

  # ...... # you can add more



# ---------------------------------------------------------------------------------------
# Home page article block display settings
# ---------------------------------------------------------------------------------------
home_article:
  category:
    enable: true # show category in home page article block
    limit: 3 # max number of categories shown in home page article block
  tag:
    enable: true # show tags in home page article block
    limit: 3 # max number of tags shown in home page article block

# ---------------------------------------------------------------------------------------
# Post page Settings
# ---------------------------------------------------------------------------------------
post:
  # Post word count
  # Dependencies: hexo-wordcount (npm install hexo-wordcount)
  # See: https://github.com/willin/hexo-wordcount
  word_count:
    enable: true
    wordcount: true # word count, one article
    min2read: true # time to read, one article

  # Author label
  author_label:
    enable: true
    auto: false # if true, show Lv1, Lv2, Lv3... , If false, show custom label
    # label array item can be one or more
    custom_label_list: ["Lv6"]

# ---------------------------------------------------------------------------------------
# Code copy
# ---------------------------------------------------------------------------------------
code_block:
  copy: true # enable code copy button
  style: mac # mac | simple

# ---------------------------------------------------------------------------------------
# Table of Contents in the Sidebar
# ---------------------------------------------------------------------------------------
toc:
  enable: true

  # Automatically add list number to toc.
  number: false

  # If true, all level of TOC in a post will be displayed, rather than the activated part of it.
  expand_all: true

  # If true, open TOC every time when you enter the article page
  init_open: true

# ---------------------------------------------------------------------------------------
# Post copyright info
# ---------------------------------------------------------------------------------------
copyright_info:
  enable: true

# ---------------------------------------------------------------------------------------
# Website count
# ---------------------------------------------------------------------------------------
website_count:
  # busuanzi
  # See: http://ibruce.info/2015/04/04/busuanzi/
  busuanzi_count:
    enable: true
    site_uv: true
    site_pv: true
    page_pv: true

# ---------------------------------------------------------------------------------------
# Local Search
# Dependencies: hexo-generator-searchdb
# See: https://github.com/theme-next/hexo-generator-searchdb
# ---------------------------------------------------------------------------------------
local_search:
  enable: true
  preload: true # Preload the search data when the page loads

# ---------------------------------------------------------------------------------------
# Comment plugin
# ---------------------------------------------------------------------------------------
comment:
  enable: true
  use: waline # values: waline | gitalk | twikoo

  # Waline
  # See: https://waline.js.org/guide/get-started.html
  waline:
    serverUrl: # Waline server url(vercel) example: https://example.example.com
    lang: zh-CN # Waline language, default: zh-CN. See: https://waline.js.org/guide/client/i18n.html
  
  # Gitalk
  # See: https://github.com/gitalk/gitalk
  gitalk:
    github_id: # GitHub repo owner
    repository:  # Repository name to store issues
    client_id: # GitHub Application Client ID
    client_secret: # GitHub Application Client Secret

  # Twikoo
  # See: https://github.com/imaegoo/twikoo
  twikoo:
    visitor: true
    env_id: # Vercel or Tencent Cloud Function environment ID
    region: # environment region. If select Guangzhou, fill in "ap-guangzhou". (optional)

# ---------------------------------------------------------------------------------------
# Friend Links page
# ---------------------------------------------------------------------------------------
friend_links:
  columns: 2 # number of columns. 2 or 3

# ---------------------------------------------------------------------------------------
# RSS
# Dependencies: hexo-generator-feed
# See: https://github.com/hexojs/hexo-generator-feed
# ---------------------------------------------------------------------------------------
rss:
  enable: false

# ---------------------------------------------------------------------------------------
# Lazyload image
# ---------------------------------------------------------------------------------------
lazyload:
  enable: true

# ---------------------------------------------------------------------------------------
# CDN
# ---------------------------------------------------------------------------------------
cdn:
  enable: true

# ---------------------------------------------------------------------------------------
# PJAX
# ---------------------------------------------------------------------------------------
pjax:
  enable: true

# ---------------------------------------------------------------------------------------
# Fontawesome
# ---------------------------------------------------------------------------------------
fontawesome: # select fontawesome versions you want to use, in order to reduce the loading time, select as few as possible
  thin: false # use fontawesome thin version or not
  light: false # use fontawesome light version or not
  duotone: false # use fontawesome duotone version or not

# ---------------------------------------------------------------------------------------
# Footer settings
# ---------------------------------------------------------------------------------------
footer:
  runtime: true # show website running time or not
  start_time: 2022/10/1 11:00:00 # the starting time of your website, format: yyyy/mm/dd hh:mm:ss
  customize:  # customize footer message, can be html code
  icp: # ICP record number of your website, Can be null

# ---------------------------------------------------------------------------------------
# Redefine Theme version (Please dont modify it)
# Please go to github to update the latest version frequently
# ---------------------------------------------------------------------------------------
version: 1.1.2

# Search
## See: https://github.com/theme-next/hexo-generator-searchdb
search:
  path: search.json
  field: post
  content: true
  format: striptags

recommended_article: # 文章推荐,需要 npm install nodejieba
  enable: false
  title: 推荐阅读
  icon: fa-solid fa-bookmark
  max_count: 3
  placeholder_img: https://evan.beee.top/img/wallhaven-wqery6-light.webp
  # 不展示文章推荐:
  # front-matter 使用 skip_recommended_article: true 关闭
  # 不在以下文件夹文章中展示文章推荐 根目录是source/
  #skip_dirs:
  #  - wiki/

复现方法
复现该 Bug 的步骤:
升级到1.1.2以上的版本

预期结果
该功能本来应该是怎么样的
站点可以正常显示

截图
如果可以,请添加截图以帮助解释您的问题。
image
元素为空

电脑(请填写以下信息):

  • 操作系统:[例如 macOS, Windows]
  • 浏览器 [例如 Chrome, Safari]
  • 版本 [例如 108]
  • 操作系统:Windows
  • 浏览器 :Chrome
  • 版本:110

移动端(请填写以下信息):

  • 设备:[例如 iPhone 14]
  • 操作系统:[例如 iOS16.1]
  • 浏览器 [例如 Chrome, Safari]
  • 版本 [例如 108]

其他
如有其他内容,请提供

构建时出现了特别多例如这样的错误,如:

<html>
<body>
<!--StartFragment-->

ERROR TypeError: /vercel/path0/node_modules/hexo-theme-redefine/layout/page.ejs:54
--
17:41:10.290 | 52\|
17:41:10.290 | 53\|         <div class="page-main-content-bottom">
17:41:10.290 | >> 54\|             <%- partial('_partials/footer') %>
17:41:10.290 | 55\|         </div>
17:41:10.290 | 56\|     </div>
17:41:10.290 | 57\|
17:41:10.290 |  
17:41:10.290 | /vercel/path0/node_modules/hexo-theme-redefine/layout/_partials/footer.ejs:31
17:41:10.291 | 29\|             <%# 保留主题信息是对作者的尊重,感谢! %><span class="theme-version-container"><%- __('theme') %>&nbsp;<a class="theme-version" target="_blank" href="https://github.com/EvanNotFound/hexo-theme-redefine">Redefine v<%= theme.version %></a><%# 保留主题信息是对作者的尊重,感谢! %>
17:41:10.291 | 30\|         </div>
17:41:10.291 | >> 31\|         <% if (theme.footer.icp.enable && theme.footer.icp.hasOwnProperty('number')) { %>
17:41:10.291 | 32\|             <div class="icp-info info-item"><a target="_blank" rel="nofollow" href="
17:41:10.291 | 33\|                 <% if (theme.footer.icp.hasOwnProperty('url') && theme.footer.icp.url) { %>
17:41:10.291 | 34\|                     <%= theme.footer.icp.url %>
17:41:10.291 |  
17:41:10.291 | Cannot read property 'enable' of null
17:41:10.291 | at eval (eval at compile (/vercel/path0/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:673:12), <anonymous>:64:29)
17:41:10.292 | at footer (/vercel/path0/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:703:17)
17:41:10.292 | at _View._compiledSync (/vercel/path0/node_modules/hexo/lib/theme/view.js:132:24)
17:41:10.292 | at _View.renderSync (/vercel/path0/node_modules/hexo/lib/theme/view.js:59:25)
17:41:10.292 | at Object.partial (/vercel/path0/node_modules/hexo/lib/plugins/helper/partial.js:34:15)
17:41:10.292 | at eval (eval at compile (/vercel/path0/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:673:12), <anonymous>:82:17)
17:41:10.292 | at page (/vercel/path0/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:703:17)
17:41:10.293 | at _View._compiled (/vercel/path0/node_modules/hexo/lib/theme/view.js:136:50)
17:41:10.293 | at _View.render (/vercel/path0/node_modules/hexo/lib/theme/view.js:39:17)
17:41:10.293 | at /vercel/path0/node_modules/hexo/lib/hexo/index.js:64:21
17:41:10.293 | at tryCatcher (/vercel/path0/node_modules/bluebird/js/release/util.js:16:23)
17:41:10.293 | at /vercel/path0/node_modules/bluebird/js/release/method.js:15:34
17:41:10.293 | at RouteStream._read (/vercel/path0/node_modules/hexo/lib/hexo/router.js:47:5)
17:41:10.293 | at RouteStream.Readable.read (internal/streams/readable.js:465:10)
17:41:10.293 | at resume_ (internal/streams/readable.js:962:12)
17:41:10.294 | at processTicksAndRejections (internal/process/task_queues.js:82:21) {
17:41:10.294 | path: '/vercel/path0/node_modules/hexo-theme-redefine/layout/page.ejs'
17:41:10.294 | }

<!--EndFragment-->
</body>
</html>

<html>
<body>
<!--StartFragment-->

ERROR TypeError: /vercel/path0/node_modules/hexo-theme-redefine/layout/archive.ejs:1
--
17:41:10.304 | >> 1\| <%- partial('page') %>
17:41:10.305 |  
17:41:10.305 | /vercel/path0/node_modules/hexo-theme-redefine/layout/page.ejs:54
17:41:10.305 | 52\|
17:41:10.305 | 53\|         <div class="page-main-content-bottom">
17:41:10.305 | >> 54\|             <%- partial('_partials/footer') %>
17:41:10.305 | 55\|         </div>
17:41:10.305 | 56\|     </div>
17:41:10.305 | 57\|
17:41:10.305 |  
17:41:10.306 | /vercel/path0/node_modules/hexo-theme-redefine/layout/_partials/footer.ejs:31
17:41:10.306 | 29\|             <%# 保留主题信息是对作者的尊重,感谢! %><span class="theme-version-container"><%- __('theme') %>&nbsp;<a class="theme-version" target="_blank" href="https://github.com/EvanNotFound/hexo-theme-redefine">Redefine v<%= theme.version %></a><%# 保留主题信息是对作者的尊重,感谢! %>
17:41:10.306 | 30\|         </div>
17:41:10.306 | >> 31\|         <% if (theme.footer.icp.enable && theme.footer.icp.hasOwnProperty('number')) { %>
17:41:10.306 | 32\|             <div class="icp-info info-item"><a target="_blank" rel="nofollow" href="
17:41:10.307 | 33\|                 <% if (theme.footer.icp.hasOwnProperty('url') && theme.footer.icp.url) { %>
17:41:10.307 | 34\|                     <%= theme.footer.icp.url %>
17:41:10.307 |  
17:41:10.307 | Cannot read property 'enable' of null
17:41:10.307 | at eval (eval at compile (/vercel/path0/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:673:12), <anonymous>:64:29)
17:41:10.307 | at footer (/vercel/path0/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:703:17)
17:41:10.307 | at _View._compiledSync (/vercel/path0/node_modules/hexo/lib/theme/view.js:132:24)
17:41:10.307 | at _View.renderSync (/vercel/path0/node_modules/hexo/lib/theme/view.js:59:25)
17:41:10.308 | at Object.partial (/vercel/path0/node_modules/hexo/lib/plugins/helper/partial.js:34:15)
17:41:10.308 | at eval (eval at compile (/vercel/path0/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:673:12), <anonymous>:82:17)
17:41:10.308 | at page (/vercel/path0/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:703:17)
17:41:10.308 | at _View._compiledSync (/vercel/path0/node_modules/hexo/lib/theme/view.js:132:24)
17:41:10.308 | at _View.renderSync (/vercel/path0/node_modules/hexo/lib/theme/view.js:59:25)
17:41:10.308 | at Object.partial (/vercel/path0/node_modules/hexo/lib/plugins/helper/partial.js:34:15)
17:41:10.308 | at eval (eval at compile (/vercel/path0/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:673:12), <anonymous>:10:17)
17:41:10.309 | at archive (/vercel/path0/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:703:17)
17:41:10.309 | at _View._compiled (/vercel/path0/node_modules/hexo/lib/theme/view.js:136:50)
17:41:10.309 | at _View.render (/vercel/path0/node_modules/hexo/lib/theme/view.js:39:17)
17:41:10.309 | at /vercel/path0/node_modules/hexo/lib/hexo/index.js:64:21
17:41:10.309 | at tryCatcher (/vercel/path0/node_modules/bluebird/js/release/util.js:16:23) {
17:41:10.309 | path: '/vercel/path0/node_modules/hexo-theme-redefine/layout/archive.ejs'
17:41:10.309 | }

<!--EndFragment-->
</body>
</html>

<html>
<body>
<!--StartFragment-->

ERROR TypeError: /vercel/path0/node_modules/hexo-theme-redefine/layout/404.ejs:1
--
17:45:56.419 | >> 1\| <%- partial('page') %>
17:45:56.419 |  
17:45:56.419 | /vercel/path0/node_modules/hexo-theme-redefine/layout/page.ejs:54
17:45:56.419 | 52\|
17:45:56.419 | 53\|         <div class="page-main-content-bottom">
17:45:56.419 | >> 54\|             <%- partial('_partials/footer') %>
17:45:56.419 | 55\|         </div>
17:45:56.419 | 56\|     </div>
17:45:56.419 | 57\|
17:45:56.419 |  
17:45:56.420 | /vercel/path0/node_modules/hexo-theme-redefine/layout/_partials/footer.ejs:31
17:45:56.420 | 29\|             <%# 保留主题信息是对作者的尊重,感谢! %><span class="theme-version-container"><%- __('theme') %>&nbsp;<a class="theme-version" target="_blank" href="https://github.com/EvanNotFound/hexo-theme-redefine">Redefine v<%= theme.version %></a><%# 保留主题信息是对作者的尊重,感谢! %>
17:45:56.420 | 30\|         </div>
17:45:56.420 | >> 31\|         <% if (theme.footer.icp.enable && theme.footer.icp.hasOwnProperty('number')) { %>
17:45:56.420 | 32\|             <div class="icp-info info-item"><a target="_blank" rel="nofollow" href="
17:45:56.420 | 33\|                 <% if (theme.footer.icp.hasOwnProperty('url') && theme.footer.icp.url) { %>
17:45:56.420 | 34\|                     <%= theme.footer.icp.url %>
17:45:56.420 |  
17:45:56.420 | Cannot read properties of null (reading 'enable')
17:45:56.420 | at eval ("/vercel/path0/node_modules/hexo-theme-redefine/layout/_partials/footer.ejs":64:29)
17:45:56.420 | at footer (/vercel/path0/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:703:17)
17:45:56.420 | at _View._compiledSync (/vercel/path0/node_modules/hexo/lib/theme/view.js:132:24)
17:45:56.421 | at _View.renderSync (/vercel/path0/node_modules/hexo/lib/theme/view.js:59:25)
17:45:56.421 | at Object.partial (/vercel/path0/node_modules/hexo/lib/plugins/helper/partial.js:34:15)
17:45:56.421 | at eval ("/vercel/path0/node_modules/hexo-theme-redefine/layout/page.ejs":82:17)
17:45:56.421 | at page (/vercel/path0/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:703:17)
17:45:56.421 | at _View._compiledSync (/vercel/path0/node_modules/hexo/lib/theme/view.js:132:24)
17:45:56.421 | at _View.renderSync (/vercel/path0/node_modules/hexo/lib/theme/view.js:59:25)
17:45:56.421 | at Object.partial (/vercel/path0/node_modules/hexo/lib/plugins/helper/partial.js:34:15)
17:45:56.421 | at eval ("/vercel/path0/node_modules/hexo-theme-redefine/layout/404.ejs":10:17)
17:45:56.421 | at 404 (/vercel/path0/node_modules/hexo-renderer-ejs/node_modules/ejs/lib/ejs.js:703:17)
17:45:56.421 | at _View._compiled (/vercel/path0/node_modules/hexo/lib/theme/view.js:136:50)
17:45:56.421 | at _View.render (/vercel/path0/node_modules/hexo/lib/theme/view.js:39:17)
17:45:56.421 | at /vercel/path0/node_modules/hexo/lib/hexo/index.js:64:21
17:45:56.421 | at tryCatcher (/vercel/path0/node_modules/bluebird/js/release/util.js:16:23) {
17:45:56.422 | path: '/vercel/path0/node_modules/hexo-theme-redefine/layout/404.ejs'
17:45:56.422 | }

<!--EndFragment-->
</body>
</html>

等等

[功能建议] 选择决定在head的meta中是否添加图片

功能概述
不知道咱们现在配置中有没有可以去除在html中的meta中设置图片,因为在微信中分享的时候,如果该图片的域名没有备份或者没有加入白名单的时候,就无法显示,所以我们能不能加一个选项,选择决定在head的meta中是否添加图片?
图片描述
image

image

[反馈] 首页文章下日期显示

我在_config.redefine更改了date_format:的值为 MMM DD YYYY
可是并不起作用,文章依旧是[14 小时前]

请问我是否遗漏了什么(
Screenshot_1
Screenshot_3

[BUG]Tabs分栏里代码块显示异常

提交前检查单

  • 已经尝试执行 hexo clean,问题仍然存在

Bug 描述
在Tabs分栏里插入代码显示异常,代码块上边框变短
image

复现方法
在Tabs分栏里插入代码

预期结果
image

截图
如上

电脑(请填写以下信息):

  • 操作系统:windows
  • 浏览器 chrome
  • 版本 102

移动端(请填写以下信息):

  • 设备:[例如 iPhone 14]
  • 操作系统:[例如 iOS16.1]
  • 浏览器 [例如 Chrome, Safari]
  • 版本 [例如 108]

其他
如有其他内容,请提供

[BUG]Uncaught ReferenceError: Odometer is not defined

就是代码clone下来之后,啥也没改,直接 hexo clean && hexo serve

浏览器访问 http://localhost:4000 后出来控制台就就会输出这个错误,但是不影响网站运行

提交前检查单

  • 已经尝试执行 hexo clean,问题仍然存在

Bug 描述
清晰地描述,请提供
未作修改

复现方法
复现该 Bug 的步骤:

截图
如果可以,请添加截图以帮助解释您的问题。
image

image

关于代码块样式

能不能提供一个更加简约的代码块样式啊QAQ,甚至像GitHub自带Markdown里的代码块风格这么简约的都可以,Mac风的代码块看着有点杂

[功能建议] 此功能概述

功能概述
请提供这个功能应该是什么样的
建议添加搜索功能
图片描述
可选,可以用你的毕加索画作

[功能建议] 代码块样式建议

simple样式代码块显示代码块标题和链接样式个人觉得似乎不是很美观……
QQ截图20230208233148
似乎把标题和链接往中间压压的话会好看一点
QQ截图20230208233226

附:
QQ截图20230208233129

[BUG] 目录、代码块失效

在使用 hexo-blog-encrypted 插件加密文章,解密文章后代码块的复制功能和侧边栏目录都会失效即不显示

[反馈] 首页右侧工具栏

首页右侧的工具栏在最顶部以及最底部时会隐藏
但是尽管工具栏的图标隐藏的,那个位置仍旧可以交互,点击

请原谅我没有好的图片描述这个问题...(
Screenshot_1
Screenshot_3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.