yue-plus / hexo-theme-arknights Goto Github PK
View Code? Open in Web Editor NEW明日方舟罗德岛阵营的 Hexo 主题,支持数学公式、Valine&Gitalk&Waline评论系统、Mermaid图表
Home Page: https://arknights.theme.hexo.yue.zone/
License: MIT License
明日方舟罗德岛阵营的 Hexo 主题,支持数学公式、Valine&Gitalk&Waline评论系统、Mermaid图表
Home Page: https://arknights.theme.hexo.yue.zone/
License: MIT License
如题
published with Hexo Theme Arknight by Yue_plus 這一段怎麼拿掉 ,就首頁右下角
另外浏览器控制台会报两个错误:
一旦报这个错,跟着鼠标走的圈圈和左侧栏折叠之类的靠 js 的功能也就一起失效了。我看了一下好像你那里(https://ark.theme.yueplus.ink/)也会报这个错。只有有代码块的文章会报错。
{
"name": "ttsdzb-hexo",
"version": "0.0.0",
"private": true,
"scripts": {
"build": "hexo generate",
"clean": "hexo clean",
"deploy": "hexo deploy",
"server": "hexo server"
},
"hexo": {
"version": "6.2.0"
},
"dependencies": {
"hexo": "^6.0.0",
"hexo-blog-encrypt": "^3.1.6",
"hexo-browsersync": "^0.3.0",
"hexo-filter-mathjax": "^0.8.0",
"hexo-generator-archive": "^1.0.0",
"hexo-generator-category": "^1.0.0",
"hexo-generator-index": "^2.0.0",
"hexo-generator-searchdb": "^1.4.0",
"hexo-generator-tag": "^1.0.0",
"hexo-renderer-ejs": "^2.0.0",
"hexo-renderer-marked": "^5.0.0",
"hexo-renderer-pug": "^3.0.0",
"hexo-renderer-stylus": "^2.0.0",
"hexo-server": "^3.0.0",
"hexo-theme-landscape": "^0.0.3"
}
}
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: 'TTsdzb'
subtitle: 'blog'
description: '一些笔记或是知识分享。'
keywords:
author: Dr.TTsdzb
language: zh
timezone: 'Asia/Shanghai'
# URL
## Set your site url here. For example, if you use GitHub Page, set url as 'https://username.github.io/project'
url: https://blog.ttsdzb.monster
permalink: :title/
permalink_defaults:
pretty_urls:
trailing_index: true # Set to false to remove trailing 'index.html' from permalinks
trailing_html: true # Set to false to remove trailing '.html' from permalinks
# Directory
source_dir: source
public_dir: public
tag_dir: tags
archive_dir: archives
category_dir: categories
code_dir: downloads/code
i18n_dir: :lang
skip_render:
# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
auto_spacing: true
titlecase: false # Transform title into titlecase
external_link:
enable: true # Open external links in new tab
field: site # Apply to the whole site
exclude: ''
filename_case: 0
render_drafts: false
post_asset_folder: true
marked:
prependRoot: true
postAsset: true
relative_link: true
future: true
highlight:
enable: true
line_number: true
auto_detect: false
tab_replace: ''
wrap: true
hljs: true
prismjs:
enable: false
preprocess: true
line_number: true
tab_replace: ''
# Home page setting
# path: Root path for your blogs index page. (default = '')
# per_page: Posts displayed per page. (0 = disable pagination)
# order_by: Posts order. (Order by date descending by default)
index_generator:
path: ''
per_page: 10
order_by: -date
# Category & Tag
default_category: uncategorized
category_map:
tag_map:
# Metadata elements
## https://developer.mozilla.org/en-US/docs/Web/HTML/Element/meta
meta_generator: true
# Date / Time format
## Hexo uses Moment.js to parse and display date
## You can customize the date format as defined in
## http://momentjs.com/docs/#/displaying/format/
date_format: YYYY-MM-DD
time_format: HH:mm:ss
## updated_option supports 'mtime', 'date', 'empty'
updated_option: 'mtime'
# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page
# Include / Exclude file(s)
## include:/exclude: options only apply to the 'source/' folder
include:
exclude:
ignore:
# Extensions
## Plugins: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: arknights
# Deployment
## Docs: https://hexo.io/docs/one-command-deployment
deploy:
type: ''
# Search
search:
enable: true
preload: true # 非必要
path: search.json # 非必要,缩小文件用
format: striptags # 非必要,缩小文件用(该选项能极大缩小搜索数据文件大小,建议开启)
# Mathjax
mathjax:
tags: none # 或 'ams' 或 'all'
single_dollars: true # 启用单个美元符号作为内联(行内)数学公式定界符
cjk_width: 0.9 # 相对 CJK 字符宽度
normal_width: 0.6 # 相对正常(等宽)宽度
append_css: true # 将 CSS 添加到每个页面
every_page: false # 如果为 true,那么无论每篇文章的前题中的 `mathjax` 设置如何,每页都将由 mathjax 呈现
# html lang
language: zh
# canvas 动态背景
canvas_dust: false
# <body> 背景图片链接
background_image: https://ak.hypergryph.com/assets/index/images/ak/pc/bk.jpg # /img/bg.jpg
# 侧边栏
aside:
in_left: false # 侧边栏在左 true / false
logo: https://ak.hypergryph.com/assets/index/images/ak/pc/faction/1.png # 图片链接,建议 1:1 比例
dr: / # 侧边栏 Dr. 链接
copyright: # 版权声明、备案号等,可自定义键值,不想显示则留空
# post 文章页面配置;true / false
post:
date: true # 是否显示发布日期
updated: true # 是否显示修改日期
source: false # 是否显示源文件路径
word_count: false # 是否显示字数统计
reading_time: false # 是否显示预计阅读时长
excerpt: false # 是否在文章中显示摘要内容(<!-- more--> 以上的内容)
reward: false # 文章末显示打赏二维码
# 文章内目录
toc:
list_number: true # true / false ;是否显示编号
max_depth: 6 # 最大目录深度
min_depth: 1 # 最小目录深度
# 归档页;true / false
archives:
categories_count: true # 是否显示分类总数
tags_count: true # 是否显示标签总数
# 搜索框
search:
enable: true
# Valine 无后端评论系统
valine:
enable: false
app_id: # APP ID
app_key: # APP KEY
server_url: # APP DOMAIN(LeanCloud 国际版)
gitalk:
enable: false
client_id: # GitHub Application Client ID
client_secret: # GitHub Application Client Secret
repo: # GitHub repository
owner: # GitHub repository owner
admin: [] # GitHub repository owner and collaborators (Users who having write access to this repository)
# Example: [adminA,adminB]
id: # (optional) The unique id of the page
# Example: location.pathname
# 图表支持
mermaid:
enable: false
version: '8.13.5'
# pjax 支持 —— 实验性测试阶段,请谨慎开启
pjax:
enable: false
version: '0.2.8'
mathjax:
enabled: false
# main menu navigation
menu:
Home: ''
# Contact: contact/
Archives: archives/
About: about/
# stylesheets loaded in the <head>
stylesheets:
- //unpkg.com/@highlightjs/[email protected]/styles/atom-one-dark-reasonable.min.css
# scripts loaded in the end of the body
scripts:
- //unpkg.com/@highlightjs/[email protected]/highlight.min.js
有点丑(
话说我记得之前设置成null就是不显示的啊,为什么现在还是会留一个空白的框呢
ERROR {
err: SyntaxError: Unexpected token ] in JSON at position 40
at JSON.parse ()
at Hexo.jsonRenderer (D:\Workplace\Blog\node_modules\hexo\lib\plugins\renderer\json.js:4:15)
at Hexo.tryCatcher (D:\Workplace\Blog\node_modules\bluebird\js\release\util.js:16:23)
at Hexo. (D:\Workplace\Blog\node_modules\bluebird\js\release\method.js:15:34)
at D:\Workplace\Blog\node_modules\hexo\lib\hexo\render.js:81:22
at tryCatcher (D:\Workplace\Blog\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (D:\Workplace\Blog\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (D:\Workplace\Blog\node_modules\bluebird\js\release\promise.js:604:18)
at Promise._settlePromise0 (D:\Workplace\Blog\node_modules\bluebird\js\release\promise.js:649:10)
at Promise._settlePromises (D:\Workplace\Blog\node_modules\bluebird\js\release\promise.js:729:18)
at _drainQueueStep (D:\Workplace\Blog\node_modules\bluebird\js\release\async.js:93:12)
at _drainQueue (D:\Workplace\Blog\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (D:\Workplace\Blog\node_modules\bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (D:\Workplace\Blog\node_modules\bluebird\js\release\async.js:15:14)
at processImmediate (node:internal/timers:466:21)
您好,请问有什么办法可以自定义背景图片吗,我尝试改动css文件但网页打开会是一片空白
建议将在边栏搜索更改为一个窗口搜索,个人认为在左边栏搜索有失美观,并显得杂乱无章。
`ERROR
TypeError: D:\blog\Hexo\themes\arknights\layout\post.pug:4
2|
3| block content
4| -
5| const prev = page.prev
6| const next = page.next
7| const dateConf = theme.post.date
wordcount is not a function
at eval (eval at wrap (D:\blog\Hexo\node_modules\pug-runtime\wrap.js:6:10), :457:52)
at template (eval at wrap (D:\blog\Hexo\node_modules\pug-runtime\wrap.js:6:10), :1102:7)
at _View._compiled (D:\blog\Hexo\node_modules\hexo\lib\theme\view.js:136:50)
at _View.render (D:\blog\Hexo\node_modules\hexo\lib\theme\view.js:39:17)
at D:\blog\Hexo\node_modules\hexo\lib\hexo\index.js:64:21
at tryCatcher (D:\blog\Hexo\node_modules\bluebird\js\release\util.js:16:23)
at D:\blog\Hexo\node_modules\bluebird\js\release\method.js:15:34
at RouteStream.read (D:\blog\Hexo\node_modules\hexo\lib\hexo\router.js:47:5)
at RouteStream.Readable.read (node:internal/streams/readable:487:10)
at resume (node:internal/streams/readable:987:12)
at processTicksAndRejections (node:internal/process/task_queues:83:21)`
怎么处理?
理想中的menu配置:
menu:
记录终端:
罗德岛日常: record/day/
这片大地: record/earth/
罗德岛日报: categories/news/
实现之后可以在主菜单使用鼠标悬浮/单击之后,出现二级菜单功能
RT,在用github pages等静态页面托管时,如果链接404了,可以直接导航到网站主页或者上一页,而不是用着默认的页面
RT,有时会出现文章列表的宽度太窄,而categories和tags的宽度则太宽的问题。比如
自己平时也习惯在 markdown 里用 mermaid 画流程图,一般使用 8.13.3
版本进行渲染。
最近在尝试这个主题时,发现平时写的一些可渲染的 mermaid 没法被渲染,显示 Syntax error
。
初步估计是 mermaid 版本原因。(因为我看源码里引用 mermaid 的版本为 8.11.0
)
由于我是使用 git submodule 的方式来引用这个主题,不方便直接修改源码。
希望能够将使用的 mermaid 版本加到配置中,这样我就能在自己项目中以 _config.[theme].yml
文件的方式设定 mermaid 的版本。
看能不能在文章展示页面在右侧只显示TOC
添加到菜单里的页面(比如about、todo,相对链接为/xxx/index.html)等,在浏览其界面时无法显示评论、目录等(即使在文章内加入commit: true
),希望能修复一下。
原因(废话):本人刚入门,一晚上时间就加了个hexo-tag-aplayer的插件,但是在遇到不同页面跳转时,音乐会强制中断,如果想要继续播放的话,只能用pjax,本人低技术力,所以请大佬做个对pjax的支持,多谢了!
RT,这样就能在博客直接插入流程图、甘特图等等,无需转成图片,方便后续修改
https://github.com/mermaid-js/mermaid
RT,控制台输出如下
F:\#HexoBlog\blog>hexo clean && hexo g
INFO Validating config
INFO Deleted database.
INFO Deleted public folder.
INFO Validating config
INFO Start processing
INFO Files loaded in 3.55 s
ERROR {
err: TypeError: F:/#HexoBlog/blog/themes/arknights/source/css/_core/aside.styl:75:14
71|
72| #aside-block
73| transition .3s
74| margin-top 10px
75| background linear-gradient(rgba(20, 21, 22, 0.8), #0000)
--------------------^
76| #total-archives .total-number
77| letter-spacing 2px
78| @media ( min-width 769px )
Cannot read properties of undefined (reading 'nodes')
at "#aside-block" (F:/#HexoBlog/blog/themes/arknights/source/css/_core/aside.styl:73:1)
at Evaluator.vendors (F:\#HexoBlog\blog\node_modules\stylus\lib\visitor\evaluator.js:1570:32)
at Evaluator.unvendorize (F:\#HexoBlog\blog\node_modules\stylus\lib\visitor\evaluator.js:1584:30)
at Evaluator.visitCall (F:\#HexoBlog\blog\node_modules\stylus\lib\visitor\evaluator.js:484:24)
at Evaluator.Visitor.visit (F:\#HexoBlog\blog\node_modules\stylus\lib\visitor\index.js:28:40)
at Evaluator.visit (F:\#HexoBlog\blog\node_modules\stylus\lib\visitor\evaluator.js:160:18)
at Evaluator.visitExpression (F:\#HexoBlog\blog\node_modules\stylus\lib\visitor\evaluator.js:644:26)
at Evaluator.Visitor.visit (F:\#HexoBlog\blog\node_modules\stylus\lib\visitor\index.js:28:40)
at Evaluator.visit (F:\#HexoBlog\blog\node_modules\stylus\lib\visitor\evaluator.js:160:18)
at Evaluator.visitProperty (F:\#HexoBlog\blog\node_modules\stylus\lib\visitor\evaluator.js:687:22)
at Evaluator.Visitor.visit (F:\#HexoBlog\blog\node_modules\stylus\lib\visitor\index.js:28:40)
at Evaluator.visit (F:\#HexoBlog\blog\node_modules\stylus\lib\visitor\evaluator.js:160:18)
at Evaluator.visitBlock (F:\#HexoBlog\blog\node_modules\stylus\lib\visitor\evaluator.js:720:39)
at Evaluator.Visitor.visit (F:\#HexoBlog\blog\node_modules\stylus\lib\visitor\index.js:28:40)
at Evaluator.visit (F:\#HexoBlog\blog\node_modules\stylus\lib\visitor\evaluator.js:160:18)
at Evaluator.visitGroup (F:\#HexoBlog\blog\node_modules\stylus\lib\visitor\evaluator.js:261:22)
at Evaluator.Visitor.visit (F:\#HexoBlog\blog\node_modules\stylus\lib\visitor\index.js:28:40)
at Evaluator.visit (F:\#HexoBlog\blog\node_modules\stylus\lib\visitor\evaluator.js:160:18)
at Evaluator.visitBlock (F:\#HexoBlog\blog\node_modules\stylus\lib\visitor\evaluator.js:720:39)
at Evaluator.Visitor.visit (F:\#HexoBlog\blog\node_modules\stylus\lib\visitor\index.js:28:40)
at Evaluator.visit (F:\#HexoBlog\blog\node_modules\stylus\lib\visitor\evaluator.js:160:18)
at Evaluator.importFile (F:\#HexoBlog\blog\node_modules\stylus\lib\visitor\evaluator.js:99:18)
at Evaluator.visitImport (F:\#HexoBlog\blog\node_modules\stylus\lib\visitor\evaluator.js:920:27) {
lineno: 75,
column: 14,
filename: 'F:/#HexoBlog/blog/themes/arknights/source/css/_core/aside.styl',
stylusStack: ' at "#aside-block" (F:/#HexoBlog/blog/themes/arknights/source/css/_core/aside.styl:73:1)',
input: 'aside\r\n' +
' &::-webkit-scrollbar\r\n' +
' display none\r\n' +
' &::-ms-scrollbar\r\n' +
' display none\r\n' +
' scrollbar-width none\r\n' +
' height 100vh\r\n' +
' position sticky\r\n' +
' display flex\r\n' +
' flex-direction column\r\n' +
' justify-content space-between\r\n' +
' align-content stretch\r\n' +
' overflow-y auto\r\n' +
' overflow-x hidden\r\n' +
' color #fff\r\n' +
' padding 0 20px\r\n' +
' h1\r\n' +
' font-family BenderLight, sans-serif\r\n' +
' margin-top 0\r\n' +
' footer\r\n' +
' color #898989\r\n' +
' padding 0 3px 30px 3px\r\n' +
' font-family BenderLight\r\n' +
'\r\n' +
'#logo\r\n' +
' user-select none\r\n' +
' width 100%\r\n' +
' height 5px\r\n' +
' display inline-block\r\n' +
' margin-bottom 100%\r\n' +
' padding 0\r\n' +
' img\r\n' +
' width 100%\r\n' +
'\r\n' +
'#Dr\r\n' +
' text-align center\r\n' +
' a\r\n' +
' color #fff\r\n' +
'\r\n' +
'#total\r\n' +
' margin 10px 0\r\n' +
' font-family BenderLight\r\n' +
' div\r\n' +
' display inline-block\r\n' +
'\r\n' +
'#total-archives\r\n' +
' color #fff\r\n' +
' box-sizing border-box\r\n' +
' width 100%\r\n' +
' border-left 5px solid #fff\r\n' +
' padding 0 0 0 10px\r\n' +
' display inline-block\r\n' +
' transition 1s\r\n' +
' .total-title\r\n' +
' font-size 23px\r\n' +
' display block\r\n' +
' .total-number\r\n' +
' font-weight bolder\r\n' +
' font-size 52px\r\n' +
' padding 0 10px\r\n' +
' transition .8s\r\n' +
' @media ( min-width 769px )\r\n' +
' &:hover\r\n' +
' border-color #2bf\r\n' +
' background-color rgba(#fff, .1)\r\n' +
' .total-number\r\n' +
' color #2bf\r\n' +
'\r\n' +
'#total-tags, #total-categories\r\n' +
' margin 15px 0 0 15px\r\n' +
'\r\n' +
'#aside-block\r\n' +
' transition .3s\r\n' +
' margin-top 10px\r\n' +
' background linear-gradient(rgba(20, 21, 22, 0.8), #0000)\r\n' +
' #total-archives .total-number\r\n' +
' letter-spacing 2px\r\n' +
' @media ( min-width 769px )\r\n' +
' &:hover h1\r\n' +
' background-color #2bf\r\n' +
' h1\r\n' +
' transition 1s\r\n' +
' color #000\r\n' +
' background-color #fff\r\n' +
' margin 0\r\n' +
' padding 0 10px\r\n' +
' font-size medium\r\n' +
'\r\n' +
'#description p\r\n' +
' margin unset\r\n' +
' text-align center\r\n'
}
} Asset render failed: %s css/arknights.css
ERROR {
err: SyntaxError: Unexpected token ] in JSON at position 40
at JSON.parse (<anonymous>)
at Hexo.jsonRenderer (F:\#HexoBlog\blog\node_modules\hexo\lib\plugins\renderer\json.js:4:15)
at Hexo.tryCatcher (F:\#HexoBlog\blog\node_modules\bluebird\js\release\util.js:16:23)
at Hexo.<anonymous> (F:\#HexoBlog\blog\node_modules\bluebird\js\release\method.js:15:34)
at F:\#HexoBlog\blog\node_modules\hexo\lib\hexo\render.js:81:22
at tryCatcher (F:\#HexoBlog\blog\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (F:\#HexoBlog\blog\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (F:\#HexoBlog\blog\node_modules\bluebird\js\release\promise.js:604:18)
at Promise._settlePromise0 (F:\#HexoBlog\blog\node_modules\bluebird\js\release\promise.js:649:10)
at Promise._settlePromises (F:\#HexoBlog\blog\node_modules\bluebird\js\release\promise.js:729:18)
at _drainQueueStep (F:\#HexoBlog\blog\node_modules\bluebird\js\release\async.js:93:12)
at _drainQueue (F:\#HexoBlog\blog\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (F:\#HexoBlog\blog\node_modules\bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (F:\#HexoBlog\blog\node_modules\bluebird\js\release\async.js:15:14)
at processImmediate (node:internal/timers:466:21)
} Asset render failed: %s js/tsconfig.json
INFO Generated: search.json
INFO Generated: archives/2022/05/index.html
INFO Generated: archives/index.html
INFO Generated: archives/2022/index.html
INFO Generated: index.html
INFO Generated: font/Geometos.ttf
INFO Generated: cursor-inner.png
INFO Generated: favicon.ico
INFO Generated: css/arknights.css
INFO Generated: font/JetBrainsMono-Regular.woff2
INFO Generated: font/BenderLight.ttf
INFO Generated: js/search.js
INFO Generated: js/tsconfig.json
INFO Generated: js/arknights.js
INFO Generated: js/pjax.js
INFO Generated: 404.html
INFO Generated: 2022/05/20/hello-world/index.html
INFO 17 files generated in 640 ms
希望,就只是希望,没时间,那(那)就(就)没(打)时(钱)间(吧)吧,okok
RT
npm: 8.1.2
node: 16.13.2
hexo: 6.0.0
hexo-cli: 4.3.0
使用此主题构建带Valine评论的网页时未出错
但在测试网页功能时Valine评论刷新后消失
有时候把网页后?t=1xxxxxxxxxx去除后在所有网页或部分网页显示同一个评论
Valine后台Comments有记录
{
"nick": "Test",
"ip": "2409:*********:f007",
"updatedAt": "2022-02-09T00:30:51.390Z",
"ACL": {
"*": {
"read": true
}
},
"objectId": "62030**********83b49",
"mail": "****************@gmail.com",
"ua": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/******* (KHTML, like Gecko) Chrome/97.0.4692.99 Safari/******",
"insertedAt": {
"__type": "Date",
"iso": "2022-02-09T00:30:49.910Z"
},
"createdAt": "2022-02-09T00:30:51.390Z",
"link": "https://**************",
"comment": "<p>test</p>\n",
"url": "/",
"QQAvatar": ""
}
附package.json
{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"scripts": {
"build": "hexo generate",
"clean": "hexo clean",
"deploy": "hexo deploy",
"server": "hexo server"
},
"hexo": {
"version": "6.0.0"
},
"dependencies": {
"hexo": "^6.0.0",
"hexo-browsersync": "^0.3.0",
"hexo-generator-archive": "^1.0.0",
"hexo-generator-category": "^1.0.0",
"hexo-generator-index": "^2.0.0",
"hexo-generator-searchdb": "^1.4.0",
"hexo-generator-tag": "^1.0.0",
"hexo-renderer-dartsass": "^0.1.2",
"hexo-renderer-ejs": "^2.0.0",
"hexo-renderer-marked": "^5.0.0",
"hexo-renderer-pug": "^3.0.0",
"hexo-renderer-stylus": "^2.0.0",
"hexo-server": "^3.0.0",
"hexo-theme-landscape": "^0.0.3"
}
}
(自己写的代码太丑,希望大佬改一下)
我的代码
layout.pug
中的#total-categories
span.total-title Categories:
span.total-number= site.categories.length
后面添加
link(rel="stylesheet", href="/css/about_me.css")
#about_me.about_me
br
a(href=theme.social.github.url)
img(src=theme.social.github.img, alt="social-github")
a(href=theme.social.weibo.url)
img(src=theme.social.weibo.img, alt="social-weibo")
a(href=theme.social.wyy.url)
img(src=theme.social.wyy.img, alt="social-wyy")
a(href=theme.social.email.url)
img(src=theme.social.email.img, alt="social-email")
a(href=theme.social.wechat.url)
img(src=theme.social.wechat.img, alt="social-wechat")
a(href=theme.social.zhihu.url)
img(src=theme.social.zhihu.img, alt="social-zhihu")
a(href=theme.social.qq.url)
img(src=theme.social.qq.img, alt="social-qq")
about_me.css
中(特地建了一个文件,好浪费).about_me img {
height: 20px;
width: 20px
}
social:
github:
url: https://github.com/feilongproject
img: https://cdn.jsdelivr.net/gh/honjun/[email protected]/img/social/github.png
weibo:
url: https://weibo.com/feilongproject
img: https://cdn.jsdelivr.net/gh/honjun/[email protected]/img/social/sina.png
wyy:
url: https://music.163.com/user?id=1374209960
img: https://cdn.jsdelivr.net/gh/honjun/[email protected]/img/social/wangyiyun.png
zhihu:
url: #
img: https://cdn.jsdelivr.net/gh/honjun/[email protected]/img/social/zhihu.png
email:
url: mailto:[email protected]
img: https://cdn.jsdelivr.net/gh/honjun/[email protected]/img/social/email.svg
wechat:
url:
rcode: https://feilongproject.github.io/img/donate/wechat.jpg
img: https://cdn.jsdelivr.net/gh/honjun/[email protected]/img/social/wechat.png
qq:
url: https://wpa.qq.com/msgrd?v=3&uin=1728904631&site=qq&menu=yes
img: https://im.qq.com/favicon.ico
{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"scripts": {
"build": "hexo generate",
"clean": "hexo clean",
"deploy": "hexo deploy",
"server": "hexo server"
},
"hexo": {
"version": "6.0.0"
},
"dependencies": {
"hexo": "^6.0.0",
"hexo-blog-encrypt": "^3.1.6",
"hexo-browsersync": "^0.3.0",
"hexo-deployer-git": "^3.0.0",
"hexo-filter-mathjax": "^0.8.0",
"hexo-generator-archive": "^1.0.0",
"hexo-generator-category": "^1.0.0",
"hexo-generator-index": "^2.0.0",
"hexo-generator-searchdb": "^1.4.0",
"hexo-generator-tag": "^1.0.0",
"hexo-render-pug": "^2.1.4",
"hexo-renderer-marked": "^5.0.0",
"hexo-server": "^3.0.0"
},
"devDependencies": {
"hexo-renderer-dartsass": "^0.1.2",
"hexo-renderer-ts": "^1.3.0"
}
}
您好,我设定的根目录为https://xxxxxx.github.io/blog.io/ .所以点击header里面的achieves会跳转到https://xxxxxx.github.io/blog.io/archives/ .但是右侧的Archives Total点击后会跳转到https://xxxxxx.github.io/archives/ 。然后点击Dr.XXX也没有返回根目录https://xxxxxx.github.io/blog.io/ 而是跳转到了https://xxxxxx.github.io/
建议为本项目写一个wiki,readme文件过于杂乱,我正在写大部分,望加入开发:
https://github.com/arkerny/hexo-theme-arknights
https://github.com/arkerny/hexo-theme-arknights/wiki/
ERROR {
err: SyntaxError: Unexpected token / in JSON at position 29
at JSON.parse ()
at Hexo.jsonRenderer (E:\VSCodeFiles\SherkeyBlog\node_modules\hexo\lib\plugins\renderer\json.js:4:15)
at Hexo.tryCatcher (E:\VSCodeFiles\SherkeyBlog\node_modules\bluebird\js\release\util.js:16:23)
at Hexo. (E:\VSCodeFiles\SherkeyBlog\node_modules\bluebird\js\release\method.js:15:34)
at E:\VSCodeFiles\SherkeyBlog\node_modules\hexo\lib\hexo\render.js:81:22
at tryCatcher (E:\VSCodeFiles\SherkeyBlog\node_modules\bluebird\js\release\util.js:16:23)
at Promise._settlePromiseFromHandler (E:\VSCodeFiles\SherkeyBlog\node_modules\bluebird\js\release\promise.js:547:31)
at Promise._settlePromise (E:\VSCodeFiles\SherkeyBlog\node_modules\bluebird\js\release\promise.js:604:18)
at Promise._settlePromise0 (E:\VSCodeFiles\SherkeyBlog\node_modules\bluebird\js\release\promise.js:649:10)
at Promise._settlePromises (E:\VSCodeFiles\SherkeyBlog\node_modules\bluebird\js\release\promise.js:729:18)
at _drainQueueStep (E:\VSCodeFiles\SherkeyBlog\node_modules\bluebird\js\release\async.js:93:12)
at _drainQueue (E:\VSCodeFiles\SherkeyBlog\node_modules\bluebird\js\release\async.js:86:9)
at Async._drainQueues (E:\VSCodeFiles\SherkeyBlog\node_modules\bluebird\js\release\async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (E:\VSCodeFiles\SherkeyBlog\node_modules\bluebird\js\release\async.js:15:14)
at processImmediate (node:internal/timers:464:21)
} Asset render failed: %s js/tsconfig.json
RT,没有代码块最上面那个显示代码语言、行数和复制按钮的灰框
Mermaid 反复提示语法错误,直接复制样例都挂了 QAQ
另外这个 Mermaid 没更新欸。
这是一个 Hexo 5.0 的新特性。
可参考 icarus
>> hexo s
INFO Validating config
INFO Start processing
[Browsersync] Access URLs:
----------------------------------
UI: http://localhost:3001
----------------------------------
UI External: http://localhost:3001
----------------------------------
INFO Hexo is running at http://localhost:4000 . Press Ctrl+C to stop.
ERROR node_modules/_@[email protected]@@types/babel-types/index.d.ts(10,15): error TS2307: Cannot find module './ts3.6/index' or its corresponding type declarations.
。。。
ERROR node_modules/_@[email protected]@@types/babel-types/index.d.ts(244,109): error TS2307: Cannot find module './ts3.6/index' or its corresponding type declarations.
ERROR node_modules/_@[email protected]@@types/babylon/index.d.ts(8,10): error TS2305: Module '"./node_modules/@types/babel-types"' has no exported member 'File'.
ERROR node_modules/_@[email protected]@@types/babylon/index.d.ts(8,16): error TS2305: Module '"./node_modules/@types/babel-types"' has no exported member 'Expression'.
这样就方便知道浏览到什么位置,也可以快捷的回到顶部
如题
想把右侧的侧面栏移到左边,看着网页源码是把<aside>
和<article>
换一下位置,但是移动后,ICP会溢出<aside>
边框,希望能修复一下XD
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.