Giter Site home page Giter Site logo

solstice23 / hexo-theme-argon Goto Github PK

View Code? Open in Web Editor NEW
286.0 6.0 30.0 4.86 MB

Argon-Theme 的 Hexo 移植版

License: GNU General Public License v3.0

JavaScript 7.33% CSS 50.87% SCSS 35.36% EJS 6.44%
argon hexo hexo-theme costomizable pjax argon-theme

hexo-theme-argon's Introduction

Argon

Hexo-Theme-Argon

Argon-Theme 的 Hexo 移植版

关于

Hexo-Theme-Argon 移植自 WordPress 版 Argon 主题。

项目状态

目前没有精力维护移植版,只维护 Wordpress 版本。Wordpress 的新功能将不会来到 Hexo 版本,只进行必要的 BUG 修复。(很久没有使用 Hexo)

欢迎提交 Pull Request 贡献/移植新功能/修复 BUG。

使用

1. 安装并启用主题

  1. Hexo 根目录/themes 目录下 Clone 本 Repo。
git clone https://github.com/solstice23/hexo-theme-argon.git

安装 ejs 渲染器。

npm install hexo-renderer-ejs
  1. 重命名 Clone 后的文件夹为 argon

  2. Hexo 根目录/_config.yml 中将 theme 项改为 argon

2. 修改主题配置

  1. Hexo 根目录/themes/argon/_config.yml 复制到 Hexo 根目录/source/_data 文件夹中,并重命名为 argon.yml

  2. 修改复制后的配置文件

3. 配置搜索功能

  1. Hexo 根目录/themes 目录下执行
npm install hexo-generator-search --save
  1. Hexo 根目录/_config.yml 中添加选项
search:
  path: search.xml
  field: post
  content: true

更新

Hexo 根目录/themes/argon 目录中执行

git pull

文章内参数

Argon 支持给文章设定一些单独的参数,例如文章头图

参数名 解释
thumbnail 文章头图地址
first_image_as_thumbnail 该篇文章是否选用文中第一张图作为头图
after_post 文末附加内容
excerpt 文章自定义摘要

Hexo 版相比 Wordpress 版

  • 保留了 Wordpress 版的大部分特性
  • 相同的界面
  • 暂时不支持多语言(欢迎 PR)
  • 目前仅支持 Gitalk、giscus、waline 评论系统(欢迎 PR)

Telegram 频道

t.me/argontheme

自动推送更新消息以及其他关于 Argon 的消息

Readme 待完善...

更新日志

20201031 v1.0.2

  • 新增不蒜子用于统计访问人次和文章阅读量
  • 再次修复 Page 生成问题
  • 更改高亮显示颜色为红色
  • 修复 Gitalk 评论不加载问题
  • 修复文章目录不能数字+标题的问题

20200908 v1.0.1

  • 修复搜索结果点击后不会关闭问题
  • 修复手机搜索按钮重复问题
  • 修复 Page 生成问题

20200905 v1.0.0

  • 增加文章自定义摘要
  • 支持 More 标签
  • 修复 Gitalk 边距问题

20200822 v1.0.0.beta

  • 最初版本

hexo-theme-argon's People

Contributors

justghostof avatar licaoz avatar lparksi avatar seonme avatar solstice23 avatar stmoonar 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

hexo-theme-argon's Issues

A problem in an ejs file

刚刚博客deploy完了之后发现没更新,于是就重新来clone了一遍
本想一甩就走的,结果我一刷新pages发现是白的
还好有备份,不然得凉凉
hexo s了一下发现有个ejs报错但是我忘了是什么了
可以在git里面输入这个
‘’‘
hexo init && git clone [email protected]:solstice23/hexo-theme-argon.git themes/argon
’‘’
然后修改配置直接hexo s你就应该知道了
建议修复

Theme error

7:57:29 PM: $ npm run build
7:57:29 PM: > [email protected] build
7:57:29 PM: > hexo generate
7:57:30 PM: INFO Validating config
7:57:30 PM: INFO Start processing
7:57:30 PM: INFO Files loaded in 406 ms
7:57:30 PM: ERROR TypeError: /opt/build/repo/themes/argon/layout/post.ejs:2
7:57:30 PM: 1| <% if (is_post()) { %>
7:57:30 PM: >> 2| <%- partial('_partial/content-article', {post: page}) %>
7:57:30 PM: 3| <%- partial('_partial/article-bottom', {post: page}) %>
7:57:30 PM: 4| <% } %>
7:57:30 PM: 5| <% if (is_page()) { %>
7:57:30 PM: /opt/build/repo/themes/argon/layout/_partial/content-article.ejs:20
7:57:30 PM: 18| <%= post.title %>
7:57:30 PM: 19|


7:57:30 PM: >> 20| <%
7:57:30 PM: 21| let meta_list = theme.article_meta.split('|');
7:57:30 PM: 22| for (let i in meta_list){
7:57:30 PM: 23| if (meta_list[i] == 'time'){ %>
7:57:30 PM: Cannot read properties of undefined (reading 'split')
7:57:30 PM: at eval ("/opt/build/repo/themes/argon/layout/_partial/content-article.ejs":46:40)
7:57:30 PM: at content-article (/opt/build/repo/node_modules/ejs/lib/ejs.js:692:17)
7:57:30 PM: at _View._compiledSync (/opt/build/repo/node_modules/hexo/lib/theme/view.js:132:24)
7:57:30 PM: at _View.renderSync (/opt/build/repo/node_modules/hexo/lib/theme/view.js:59:25)
7:57:30 PM: at Object.partial (/opt/build/repo/node_modules/hexo/lib/plugins/helper/partial.js:34:15)
7:57:30 PM: at eval ("/opt/build/repo/themes/argon/layout/post.ejs":13:17)
7:57:30 PM: at post (/opt/build/repo/node_modules/ejs/lib/ejs.js:692:17)
7:57:30 PM: at _View._compiled (/opt/build/repo/node_modules/hexo/lib/theme/view.js:136:50)
7:57:30 PM: at _View.render (/opt/build/repo/node_modules/hexo/lib/theme/view.js:39:17)
7:57:30 PM: at /opt/build/repo/node_modules/hexo/lib/hexo/index.js:64:21
7:57:30 PM: at tryCatcher (/opt/build/repo/node_modules/bluebird/js/release/util.js:16:23)
7:57:30 PM: at /opt/build/repo/node_modules/bluebird/js/release/method.js:15:34
7:57:30 PM: at RouteStream.read (/opt/build/repo/node_modules/hexo/lib/hexo/router.js:47:5)
7:57:30 PM: at RouteStream.Readable.read (node:internal/streams/readable:487:10)
7:57:30 PM: at resume
(node:internal/streams/readable:988:12)
7:57:30 PM: at processTicksAndRejections (node:internal/process/task_queues:83:21) {
7:57:30 PM: path: '/opt/build/repo/themes/argon/layout/post.ejs'
7:57:30 PM: }
7:57:30 PM: ERROR TypeError: /opt/build/repo/themes/argon/layout/index.ejs:2
7:57:30 PM: 1| <% page.posts.each(function(post){ %>
7:57:30 PM: >> 2| <%- partial('_partial/content-preview', {post: post}) %>
7:57:30 PM: 3| <% }) %>
7:57:30 PM: 4| <%- partial('_partial/pagination', {page: page}) %>
7:57:30 PM: /opt/build/repo/themes/argon/layout/_partial/content-preview.ejs:12
7:57:30 PM: 10| <%= post.title %>
7:57:30 PM: 11|

7:57:31 PM: Creating deploy upload records
7:57:30 PM: >> 12| <%
7:57:30 PM: 13| let meta_list = theme.article_meta.split('|');
7:57:30 PM: 14| for (let i in meta_list){
7:57:30 PM: 15| if (meta_list[i] == 'time'){ %>
7:57:30 PM: Cannot read properties of undefined (reading 'split')
7:57:30 PM: at eval ("/opt/build/repo/themes/argon/layout/_partial/content-preview.ejs":37:40)
7:57:30 PM: at content-preview (/opt/build/repo/node_modules/ejs/lib/ejs.js:692:17)
7:57:30 PM: at _View._compiledSync (/opt/build/repo/node_modules/hexo/lib/theme/view.js:132:24)
7:57:30 PM: at _View.renderSync (/opt/build/repo/node_modules/hexo/lib/theme/view.js:59:25)
7:57:30 PM: at Object.partial (/opt/build/repo/node_modules/hexo/lib/plugins/helper/partial.js:34:15)
7:57:30 PM: at eval ("/opt/build/repo/themes/argon/layout/index.ejs":13:17)
7:57:30 PM: at _Query.forEach (/opt/build/repo/node_modules/warehouse/lib/query.js:36:7)
7:57:30 PM: at eval ("/opt/build/repo/themes/argon/layout/index.ejs":10:19)
7:57:30 PM: at index (/opt/build/repo/node_modules/ejs/lib/ejs.js:692:17)
7:57:30 PM: at _View._compiled (/opt/build/repo/node_modules/hexo/lib/theme/view.js:136:50)
7:57:30 PM: at _View.render (/opt/build/repo/node_modules/hexo/lib/theme/view.js:39:17)
7:57:30 PM: at /opt/build/repo/node_modules/hexo/lib/hexo/index.js:64:21
7:57:30 PM: at tryCatcher (/opt/build/repo/node_modules/bluebird/js/release/util.js:16:23)
7:57:30 PM: at /opt/build/repo/node_modules/bluebird/js/release/method.js:15:34
7:57:30 PM: at RouteStream._read (/opt/build/repo/node_modules/hexo/lib/hexo/router.js:47:5)
7:57:30 PM: at RouteStream.Readable.read (node:internal/streams/readable:487:10) {
7:57:30 PM: path: '/opt/build/repo/themes/argon/layout/index.ejs'
7:57:30 PM: }
7:57:30 PM: ERROR {
7:57:30 PM: err: TypeError: /opt/build/repo/themes/argon/layout/layout.ejs:1
7:57:30 PM: >> 1| <%- include('header.ejs') %>
7:57:30 PM: 2|
7:57:30 PM: 3|

7:57:30 PM: 4| <% if (is_tag() || is_category() || (is_archive() && page.year != undefined)) { %>
7:57:30 PM: /opt/build/repo/themes/argon/layout/header.ejs:43
7:57:30 PM: 41|
7:57:30 PM: 42|
7:57:30 PM: >> 43|
7:57:30 PM: 44|
7:57:30 PM: 45|
7:57:30 PM: 46|
7:57:30 PM: Cannot read properties of undefined (reading 'toUpperCase')
7:57:30 PM: at Object. (/opt/build/repo/themes/argon/scripts/functions.js:154:12)
7:57:30 PM: at Object. (/opt/build/repo/themes/argon/scripts/functions.js:178:27)
7:57:30 PM: at eval ("/opt/build/repo/themes/argon/layout/header.ejs":68:26)
7:57:30 PM: at header (/opt/build/repo/node_modules/ejs/lib/ejs.js:692:17)
7:57:30 PM: at include (/opt/build/repo/node_modules/ejs/lib/ejs.js:690:39)
7:57:30 PM: at eval ("/opt/build/repo/themes/argon/layout/layout.ejs":10:17)
7:57:30 PM: at layout (/opt/build/repo/node_modules/ejs/lib/ejs.js:692:17)
7:57:30 PM: at _View._compiled (/opt/build/repo/node_modules/hexo/lib/theme/view.js:136:50)
7:57:30 PM: at _View.render (/opt/build/repo/node_modules/hexo/lib/theme/view.js:39:17)
7:57:30 PM: at /opt/build/repo/node_modules/hexo/lib/theme/view.js:51:25
7:57:30 PM: at tryCatcher (/opt/build/repo/node_modules/bluebird/js/release/util.js:16:23)
7:57:30 PM: at Promise._settlePromiseFromHandler (/opt/build/repo/node_modules/bluebird/js/release/promise.js:547:31)
7:57:30 PM: at Promise._settlePromise (/opt/build/repo/node_modules/bluebird/js/release/promise.js:604:18)
7:57:30 PM: at Promise._settlePromise0 (/opt/build/repo/node_modules/bluebird/js/release/promise.js:649:10)
7:57:30 PM: at Promise._settlePromises (/opt/build/repo/node_modules/bluebird/js/release/promise.js:729:18)
7:57:30 PM: at _drainQueueStep (/opt/build/repo/node_modules/bluebird/js/release/async.js:93:12) {
7:57:30 PM: path: '/opt/build/repo/themes/argon/layout/layout.ejs'
7:57:30 PM: }
7:57:30 PM: } Render HTML failed: archives/index.html
7:57:30 PM: ERROR {
7:57:30 PM: err: TypeError: /opt/build/repo/themes/argon/layout/layout.ejs:1
7:57:30 PM: >> 1| <%- include('header.ejs') %>
7:57:30 PM: 2|
7:57:30 PM: 3|

7:57:30 PM: 4| <% if (is_tag() || is_category() || (is_archive() && page.year != undefined)) { %>
7:57:30 PM: /opt/build/repo/themes/argon/layout/header.ejs:43
7:57:30 PM: 41|
7:57:31 PM: Starting post processing
7:57:30 PM: 42|
7:57:30 PM: >> 43|
7:57:30 PM: 44|
7:57:30 PM: 45|
7:57:30 PM: 46|
7:57:30 PM: Cannot read properties of undefined (reading 'toUpperCase')
7:57:31 PM: Post processing - HTML
7:57:30 PM: at Object. (/opt/build/repo/themes/argon/scripts/functions.js:154:12)
7:57:30 PM: at Object. (/opt/build/repo/themes/argon/scripts/functions.js:178:27)
7:57:30 PM: at eval ("/opt/build/repo/themes/argon/layout/header.ejs":68:26)
7:57:30 PM: at header (/opt/build/repo/node_modules/ejs/lib/ejs.js:692:17)
7:57:30 PM: at include (/opt/build/repo/node_modules/ejs/lib/ejs.js:690:39)
7:57:30 PM: at eval ("/opt/build/repo/themes/argon/layout/layout.ejs":10:17)
7:57:30 PM: at layout (/opt/build/repo/node_modules/ejs/lib/ejs.js:692:17)
7:57:30 PM: at _View._compiled (/opt/build/repo/node_modules/hexo/lib/theme/view.js:136:50)
7:57:30 PM: at _View.render (/opt/build/repo/node_modules/hexo/lib/theme/view.js:39:17)
7:57:30 PM: at /opt/build/repo/node_modules/hexo/lib/theme/view.js:51:25
7:57:30 PM: at tryCatcher (/opt/build/repo/node_modules/bluebird/js/release/util.js:16:23)
7:57:30 PM: at Promise._settlePromiseFromHandler (/opt/build/repo/node_modules/bluebird/js/release/promise.js:547:31)
7:57:30 PM: at Promise._settlePromise (/opt/build/repo/node_modules/bluebird/js/release/promise.js:604:18)
7:57:30 PM: at Promise._settlePromise0 (/opt/build/repo/node_modules/bluebird/js/release/promise.js:649:10)
7:57:30 PM: at Promise._settlePromises (/opt/build/repo/node_modules/bluebird/js/release/promise.js:729:18)
7:57:30 PM: at _drainQueueStep (/opt/build/repo/node_modules/bluebird/js/release/async.js:93:12) {
7:57:31 PM: Post processing - header rules
7:57:30 PM: path: '/opt/build/repo/themes/argon/layout/layout.ejs'
7:57:30 PM: }
7:57:30 PM: } Render HTML failed: archives/2022/index.html
7:57:30 PM: ERROR {
7:57:30 PM: err: TypeError: /opt/build/repo/themes/argon/layout/layout.ejs:1
7:57:30 PM: >> 1| <%- include('header.ejs') %>
7:57:30 PM: 2|
7:57:31 PM: Post processing - redirect rules
7:57:30 PM: 3|

7:57:30 PM: 4| <% if (is_tag() || is_category() || (is_archive() && page.year != undefined)) { %>
7:57:30 PM: /opt/build/repo/themes/argon/layout/header.ejs:43
7:57:30 PM: 41|
7:57:30 PM: 42|
7:57:30 PM: >> 43|
7:57:30 PM: 44|
7:57:31 PM: Post processing done
7:57:30 PM: 45|
7:57:30 PM: 46|
7:57:30 PM: Cannot read properties of undefined (reading 'toUpperCase')
7:57:30 PM: at Object. (/opt/build/repo/themes/argon/scripts/functions.js:154:12)
7:57:30 PM: at Object. (/opt/build/repo/themes/argon/scripts/functions.js:178:27)
7:57:30 PM: at eval ("/opt/build/repo/themes/argon/layout/header.ejs":68:26)
7:57:30 PM: at header (/opt/build/repo/node_modules/ejs/lib/ejs.js:692:17)
7:57:30 PM: at include (/opt/build/repo/node_modules/ejs/lib/ejs.js:690:39)
7:57:30 PM: at eval ("/opt/build/repo/themes/argon/layout/layout.ejs":10:17)
7:57:30 PM: at layout (/opt/build/repo/node_modules/ejs/lib/ejs.js:692:17)
7:57:30 PM: at _View._compiled (/opt/build/repo/node_modules/hexo/lib/theme/view.js:136:50)
7:57:30 PM: at _View.render (/opt/build/repo/node_modules/hexo/lib/theme/view.js:39:17)
7:57:30 PM: at /opt/build/repo/node_modules/hexo/lib/theme/view.js:51:25
7:57:30 PM: at tryCatcher (/opt/build/repo/node_modules/bluebird/js/release/util.js:16:23)
7:57:30 PM: at Promise._settlePromiseFromHandler (/opt/build/repo/node_modules/bluebird/js/release/promise.js:547:31)
7:57:30 PM: at Promise._settlePromise (/opt/build/repo/node_modules/bluebird/js/release/promise.js:604:18)
7:57:30 PM: at Promise._settlePromise0 (/opt/build/repo/node_modules/bluebird/js/release/promise.js:649:10)
7:57:30 PM: at Promise._settlePromises (/opt/build/repo/node_modules/bluebird/js/release/promise.js:729:18)
7:57:30 PM: at _drainQueueStep (/opt/build/repo/node_modules/bluebird/js/release/async.js:93:12) {
7:57:30 PM: path: '/opt/build/repo/themes/argon/layout/layout.ejs'
7:57:30 PM: }
7:57:30 PM: } Render HTML failed: archives/2022/01/index.html
7:57:30 PM: ERROR TypeError: /opt/build/repo/themes/argon/layout/layout.ejs:1
7:57:30 PM: >> 1| <%- include('header.ejs') %>
7:57:30 PM: 2|
7:57:30 PM: 3|

7:57:30 PM: 4| <% if (is_tag() || is_category() || (is_archive() && page.year != undefined)) { %>
7:57:30 PM: /opt/build/repo/themes/argon/layout/header.ejs:43
7:57:30 PM: 41|
7:57:30 PM: 42|
7:57:30 PM: >> 43|
7:57:30 PM: 44|
7:57:30 PM: 45|
7:57:30 PM: 46|
7:57:30 PM: Cannot read properties of undefined (reading 'toUpperCase')
7:57:30 PM: at Object. (/opt/build/repo/themes/argon/scripts/functions.js:154:12)
7:57:30 PM: at Object. (/opt/build/repo/themes/argon/scripts/functions.js:178:27)
7:57:30 PM: at eval ("/opt/build/repo/themes/argon/layout/header.ejs":68:26)
7:57:30 PM: at header (/opt/build/repo/node_modules/ejs/lib/ejs.js:692:17)
7:57:30 PM: at include (/opt/build/repo/node_modules/ejs/lib/ejs.js:690:39)
7:57:30 PM: at eval ("/opt/build/repo/themes/argon/layout/layout.ejs":10:17)
7:57:30 PM: at layout (/opt/build/repo/node_modules/ejs/lib/ejs.js:692:17)
7:57:30 PM: at _View._compiled (/opt/build/repo/node_modules/hexo/lib/theme/view.js:136:50)
7:57:30 PM: at _View.render (/opt/build/repo/node_modules/hexo/lib/theme/view.js:39:17)
7:57:30 PM: at /opt/build/repo/node_modules/hexo/lib/theme/view.js:51:25
7:57:30 PM: at tryCatcher (/opt/build/repo/node_modules/bluebird/js/release/util.js:16:23)
7:57:30 PM: at Promise._settlePromiseFromHandler (/opt/build/repo/node_modules/bluebird/js/release/promise.js:547:31)
7:57:30 PM: at Promise._settlePromise (/opt/build/repo/node_modules/bluebird/js/release/promise.js:604:18)
7:57:30 PM: at Promise._settlePromise0 (/opt/build/repo/node_modules/bluebird/js/release/promise.js:649:10)
7:57:30 PM: at Promise._settlePromises (/opt/build/repo/node_modules/bluebird/js/release/promise.js:729:18)
7:57:30 PM: at _drainQueueStep (/opt/build/repo/node_modules/bluebird/js/release/async.js:93:12) {
7:57:30 PM: path: '/opt/build/repo/themes/argon/layout/layout.ejs'
7:57:30 PM: }
7:57:30 PM: ERROR TypeError: /opt/build/repo/themes/argon/layout/layout.ejs:1
7:57:30 PM: >> 1| <%- include('header.ejs') %>
7:57:30 PM: 2|
7:57:30 PM: 3|

7:57:30 PM: 4| <% if (is_tag() || is_category() || (is_archive() && page.year != undefined)) { %>
7:57:30 PM: /opt/build/repo/themes/argon/layout/header.ejs:43
7:57:30 PM: 41|
7:57:30 PM: 42|
7:57:30 PM: >> 43|
7:57:30 PM: 44|
7:57:30 PM: 45|
7:57:30 PM: 46|
7:57:30 PM: Cannot read properties of undefined (reading 'toUpperCase')
7:57:30 PM: at Object. (/opt/build/repo/themes/argon/scripts/functions.js:154:12)
7:57:30 PM: at Object. (/opt/build/repo/themes/argon/scripts/functions.js:178:27)
7:57:30 PM: at eval ("/opt/build/repo/themes/argon/layout/header.ejs":68:26)
7:57:30 PM: at header (/opt/build/repo/node_modules/ejs/lib/ejs.js:692:17)
7:57:30 PM: at include (/opt/build/repo/node_modules/ejs/lib/ejs.js:690:39)
7:57:30 PM: at eval ("/opt/build/repo/themes/argon/layout/layout.ejs":10:17)
7:57:30 PM: at layout (/opt/build/repo/node_modules/ejs/lib/ejs.js:692:17)
7:57:30 PM: at _View._compiled (/opt/build/repo/node_modules/hexo/lib/theme/view.js:136:50)
7:57:30 PM: at _View.render (/opt/build/repo/node_modules/hexo/lib/theme/view.js:39:17)
7:57:30 PM: at /opt/build/repo/node_modules/hexo/lib/theme/view.js:51:25
7:57:30 PM: at tryCatcher (/opt/build/repo/node_modules/bluebird/js/release/util.js:16:23)
7:57:30 PM: at Promise._settlePromiseFromHandler (/opt/build/repo/node_modules/bluebird/js/release/promise.js:547:31)
7:57:30 PM: at Promise._settlePromise (/opt/build/repo/node_modules/bluebird/js/release/promise.js:604:18)
7:57:30 PM: at Promise._settlePromise0 (/opt/build/repo/node_modules/bluebird/js/release/promise.js:649:10)
7:57:30 PM: at Promise._settlePromises (/opt/build/repo/node_modules/bluebird/js/release/promise.js:729:18)
7:57:30 PM: at _drainQueueStep (/opt/build/repo/node_modules/bluebird/js/release/async.js:93:12) {
7:57:30 PM: path: '/opt/build/repo/themes/argon/layout/layout.ejs'
7:57:30 PM: }
7:57:30 PM: ERROR TypeError: /opt/build/repo/themes/argon/layout/layout.ejs:1
7:57:30 PM: >> 1| <%- include('header.ejs') %>
7:57:30 PM: 2|
7:57:30 PM: 3|

7:57:30 PM: 4| <% if (is_tag() || is_category() || (is_archive() && page.year != undefined)) { %>
7:57:30 PM: /opt/build/repo/themes/argon/layout/header.ejs:43
7:57:30 PM: 41|
7:57:30 PM: 42|
7:57:30 PM: >> 43|
7:57:30 PM: 44|
7:57:30 PM: 45|
7:57:30 PM: 46|
7:57:30 PM: Cannot read properties of undefined (reading 'toUpperCase')
7:57:30 PM: at Object. (/opt/build/repo/themes/argon/scripts/functions.js:154:12)
7:57:30 PM: at Object. (/opt/build/repo/themes/argon/scripts/functions.js:178:27)
7:57:30 PM: at eval ("/opt/build/repo/themes/argon/layout/header.ejs":68:26)
7:57:30 PM: at header (/opt/build/repo/node_modules/ejs/lib/ejs.js:692:17)
7:57:30 PM: at include (/opt/build/repo/node_modules/ejs/lib/ejs.js:690:39)
7:57:30 PM: at eval ("/opt/build/repo/themes/argon/layout/layout.ejs":10:17)
7:57:30 PM: at layout (/opt/build/repo/node_modules/ejs/lib/ejs.js:692:17)
7:57:30 PM: at _View._compiled (/opt/build/repo/node_modules/hexo/lib/theme/view.js:136:50)
7:57:30 PM: at _View.render (/opt/build/repo/node_modules/hexo/lib/theme/view.js:39:17)
7:57:30 PM: at /opt/build/repo/node_modules/hexo/lib/theme/view.js:51:25
7:57:30 PM: at tryCatcher (/opt/build/repo/node_modules/bluebird/js/release/util.js:16:23)
7:57:30 PM: at Promise._settlePromiseFromHandler (/opt/build/repo/node_modules/bluebird/js/release/promise.js:547:31)
7:57:30 PM: at Promise._settlePromise (/opt/build/repo/node_modules/bluebird/js/release/promise.js:604:18)
7:57:30 PM: at Promise._settlePromise0 (/opt/build/repo/node_modules/bluebird/js/release/promise.js:649:10)
7:57:30 PM: at Promise._settlePromises (/opt/build/repo/node_modules/bluebird/js/release/promise.js:729:18)
7:57:30 PM: at _drainQueueStep (/opt/build/repo/node_modules/bluebird/js/release/async.js:93:12) {
7:57:30 PM: path: '/opt/build/repo/themes/argon/layout/layout.ejs'
7:57:30 PM: }

可在選單上添加圖標的插件皆不起作用

如題,可在選單上添加圖標的插件都不起做作用,有開啟疑難排解模式,發現在主題不是Argon時插件都正常,但當主題設置為Argon時就會無法顯示。
可是看到作者您的Blog上導覽列的選單可以正常顯示,想請問怎麼修復,或是您是使用哪一款插件呢?
目前測試過的插件:
WP Menu Icons [完全不可用]
Menu Icons by ThemeIsle [完全不可用]
is1

在選單頁面已經設定icon:
image

無法正常顯示:
image

twikoo 不能正常加载

修改twikoo.ejs<div id="twikoo"></div><div id="tcomment"></div>

article-bottom.ejs

<% if (theme.waline.enable) { %>
	<div id="post_comment" class="card shadow-sm">
		<%- partial('_comment/waline') %>
	</div>
<% } %>

下增加

<% if (theme.twikoo.enable) { %>
	<div id="post_comment" class="card shadow-sm">
		<%- partial('_comment/twikoo') %>
	</div>
<% } %>

标题打字效果速度异常

我在修改_config.yml时打开了打字效果的选项,并设置了间隔,但在实际使用时打字间隔非常短,几乎看不出来
代码如下
enable_banner_title_typing_effect: true # 是否启用 Banner 打字效果 theme.banner_typing_effect_interval: 5 # Banner 打字间隔时长,单位 ms/字 banner_subtitle: 'Just Go For It' # Banner 子标题,留空则不显示
如果是bug希望尽快修复

顶栏好像没有写好模糊化渲染

根据:source/argontheme.jslayout/header.ejs以及与WordPress版的Argon对比后可知css中(?)少加了backdrop-filter方法,而且,即使是WordPress版的,在Safari中也不能正常渲染出这个效果,只有在Chrome里面能够显示出来。请求修一下吧。
我试过了,但是因为我不太会js,所以搞不太定,做不到WordPress那样的效果,以及也做不到让Safari也调用出这个方法。

代码区域渲染错误

如图,只渲染出框
a

以下插件
b
开启highlight无效
c
代码超出渲染也错误
d

Node.js版本为v18.6.0
系统win10,11都试过

关于 $\tt{}$ 显示不正确

给定一个由 $\tt{a}\sim \tt{z}$ 和 $\tt{*}$ 组成的字符串,其中 $\tt{*}$ 可以被替代成任何 $\tt{a}\sim \tt{z}$ 中的字符。

询问将 $\tt{*}$ 替换后字典序最小的回文字符串,无解输出 $-1$。

这样子,显示出来会是把两个 * 中间识别成斜体,麻烦修一下

关于代码块样式

如果代码块使用了highlight.js的话,无论哪种风格,貌似都会有三个红黄绿的小点遮挡了代码,并且行号会遮挡半个左右的字符,是否可以调整

新建页面无法渲染

操作复现:hexo new page "test"
渲染时报错如下

Unhandled rejection TypeError: D:\blognext\themes\argon\layout\post.ejs:6
    4| <% } %>
    5| <% if (is_page()) { %>
 >> 6|  <%- partial('_partial/content-page', {post: page}) %>
    7| <% } %>

D:\blognext\themes\argon\layout\_partial\content-page.ejs:41
    39|                                                         </time>
 >> 41|                                         <% }
    42|                                         if (meta_list[i] == 'categories' && post.categories.length > 0){ %>
    43|                                                 <% if (i > 0){ %>
    44|                                                         <div class="post-meta-devide">|</div>

Cannot read property 'length' of undefined
    at eval (D:\blognext\themes\argon\layout\_partial\content-page.ejs:82:58)
    at content-page (D:\blognext\node_modules\ejs\lib\ejs.js:682:17)
    at _View._compiledSync (D:\blognext\node_modules\hexo\lib\theme\view.js:132:24)
    at _View.renderSync (D:\blognext\node_modules\hexo\lib\theme\view.js:59:25)
    at Object.partial (D:\blognext\node_modules\hexo\lib\plugins\helper\partial.js:34:15)
    at eval (D:\blognext\themes\argon\layout\post.ejs:23:17)
    at post (D:\blognext\node_modules\ejs\lib\ejs.js:682:17)
    at _View._compiled (D:\blognext\node_modules\hexo\lib\theme\view.js:136:50)
    at _View.render (D:\blognext\node_modules\hexo\lib\theme\view.js:39:17)
    at D:\blognext\node_modules\hexo\lib\hexo\index.js:64:21
    at tryCatcher (D:\blognext\node_modules\bluebird\js\release\util.js:16:23)
    at D:\blognext\node_modules\bluebird\js\release\method.js:15:34
    at RouteStream._read (D:\blognext\node_modules\hexo\lib\hexo\router.js:30:5)
    at RouteStream.Readable.read (_stream_readable.js:467:10)v
    at resume_ (_stream_readable.js:981:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)v

且新建页面无法打开。

操作环境

hexo-cli: 4.2.0
os: Windows_NT 10.0.18363 win32 x64
node: 12.18.3
v8: 7.8.279.23-node.39
uv: 1.38.0
zlib: 1.2.11
brotli: 1.0.7
ares: 1.16.0
modules: 72
nghttp2: 1.41.0
napi: 6
llhttp: 2.0.4
http_parser: 2.9.3
openssl: 1.1.1g
cldr: 37.0
icu: 67.1
tz: 2019c
unicode: 13.0

代码块渲染错误

image
如图,代码中若是有过长的语句会导致渲染错误
还有请问可以和wordpress版本一样切换代码块风格吗

关于配置文件的一些问题

在argon.yml配置文件里面有一项:
theme.banner_typing_effect_interval
这个是不是不太合理?#Banner 打字间隔时长,单位 字/ms
和wordpress版的是反过来的,会导致打字动画速度太快

代码框样式

代码框和wordpress版的好像不太一样,是本来就是这样的还是我的问题
image
如果本来就是这样怎么改成和wordpress版的一样的代码框呢

无法使用短代码

我在文章中添加了几个短代码:
[alert]提示[/alert]
[progressbar progress="10"]进度条[/progressbar]
[collapse title="折叠区块"]折叠[/collapse]
[github author="solstice23" project="argon-theme"][/github]

我的 Markdown 文件长这样:
1

但是, hexo server 和 hexo generate 出来的都是这样的:
2

这是 hexo 版 argon 尚未添加该功能的原因吗?

A Bug of wordcount

这个我clone完主题之后没动过什么东西,结果字数给我少了好几倍
我这里有个文档明明要有3k字的给我数成了600。。。
据wordcount插件作者称你把插件魔改了(
请求修复

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.