0%

Hexo Tags Problem

ERROR Render HTML failed

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
ERROR Render HTML failed: tags/index.html
TypeError: Cannot read property 'replace' of null
at Hexo.externalLinkFilter (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/hexo/lib/plugins/filter/after_render/external_link.js:45:15)
at Hexo.tryCatcher (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/util.js:16:23)
at Hexo.<anonymous> (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/method.js:15:34)
at /home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/hexo/lib/extend/filter.js:60:50
at tryCatcher (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/util.js:16:23)
at Object.gotValue (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/reduce.js:166:18)
at Object.gotAccum (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/reduce.js:155:25)
at Object.tryCatcher (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromiseCtx (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/promise.js:641:10)
at _drainQueueStep (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/async.js:97:12)
at _drainQueue (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (internal/timers.js:439:21)
ERROR Cannot read property 'replace' of null
TypeError: Cannot read property 'replace' of null
at Hexo.externalLinkFilter (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/hexo/lib/plugins/filter/after_render/external_link.js:45:15)
at Hexo.tryCatcher (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/util.js:16:23)
at Hexo.<anonymous> (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/method.js:15:34)
at /home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/hexo/lib/extend/filter.js:60:50
at tryCatcher (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/util.js:16:23)
at Object.gotValue (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/reduce.js:166:18)
at Object.gotAccum (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/reduce.js:155:25)
at Object.tryCatcher (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/promise.js:547:31)
at Promise._settlePromise (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/promise.js:604:18)
at Promise._settlePromiseCtx (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/promise.js:641:10)
at _drainQueueStep (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/async.js:97:12)
at _drainQueue (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/async.js:86:9)
at Async._drainQueues (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/async.js:102:5)
at Immediate.Async.drainQueues [as _onImmediate] (/home/ryanjie/Documents/blog/ryanjie.gitee.io/node_modules/bluebird/js/release/async.js:15:14)
at processImmediate (internal/timers.js:439:21)

Environment

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
$ hexo v
hexo: 4.0.0
hexo-cli: 3.1.0
os: Linux 5.0.0-36-generic linux x64
node: 12.13.1
v8: 7.7.299.13-node.16
uv: 1.33.1
zlib: 1.2.11
brotli: 1.0.7
ares: 1.15.0
modules: 72
nghttp2: 1.39.2
napi: 5
llhttp: 1.1.4
http_parser: 2.8.0
openssl: 1.1.1d
cldr: 35.1
icu: 64.2
tz: 2019c
unicode: 12.1

Hexo and Plugin version

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
$ npm ls --depth 0
hexo-site@0.0.0 /home/ryanjie/Documents/blog/ryanjie.gitee.io
├── hexo@4.0.0
├── hexo-deployer-git@2.1.0
├── hexo-filter-emoji@2.0.2
├── hexo-generator-archive@1.0.0
├── hexo-generator-category@1.0.0
├── hexo-generator-feed@2.1.1
├── hexo-generator-index@1.0.0
├── hexo-generator-searchdb@1.2.0
├── hexo-generator-sitemap@2.0.0
├── hexo-generator-tag@1.0.0
├── hexo-renderer-ejs@1.0.0
├── hexo-renderer-marked@2.0.0
├── hexo-renderer-stylus@1.1.0
├── hexo-server@1.0.0
└── hexo-symbols-count-time@0.7.0

Package.json

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"scripts": {
"build": "hexo generate",
"clean": "hexo clean",
"deploy": "hexo deploy",
"server": "hexo server"
},
"hexo": {
"version": "4.0.0"
},
"dependencies": {
"hexo": "^4.0.0",
"hexo-deployer-git": "^2.1.0",
"hexo-filter-emoji": "^2.0.2",
"hexo-generator-archive": "^1.0.0",
"hexo-generator-category": "^1.0.0",
"hexo-generator-feed": "^2.1.1",
"hexo-generator-index": "^1.0.0",
"hexo-generator-searchdb": "^1.2.0",
"hexo-generator-sitemap": "^2.0.0",
"hexo-generator-tag": "^1.0.0",
"hexo-renderer-ejs": "^1.0.0",
"hexo-renderer-marked": "^2.0.0",
"hexo-renderer-stylus": "^1.1.0",
"hexo-server": "^1.0.0",
"hexo-symbols-count-time": "^0.7.0"
}
}

Hexo _config.yml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
# @Author: Ryanjie
# @Date: 2018-11-07 14:24:39
# @Last Modified by: Ryanjie
# @Last Modified time: 2019-11-29 00:40:55
#################################################################
###################### Hexo Configuration #######################
#################################################################

# Site
title: Ryanjie
keywords: "Hexo, Ryanjie"
author: Ryanjie
language: en
timezone: UTC

# URL
root: /
permalink: :title/
permalink_defaults:
pretty_urls:
trailing_index: true

# 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:
- "robots.txt"

# Writing
new_post_name: :title.md
default_layout: post
titlecase: false
external_link: true
filename_case: 0
render_drafts: false
post_asset_folder: false
relative_link: false
future: true
highlight:
enable: true
line_number: true
auto_detect: true
tab_replace:

# Home page setting
index_generator:
path: ""
per_page: 8
order_by: -date
pagination_dir: page

# Archive page setting
archive_generator:
enabled: true
per_page: 66
yearly: true
monthly: false
daily: false
order_by: -date

# Category page setting
category_generator:
per_page: 36
order_by: -date

# Tag page setting
tag_generator:
per_page: 200
order_by: -date

# Category & Tag
default_category: uncategorized
category_map:
tag_map:

# Date / Time format
date_format: YYYY-MM-DD
time_format: HH:mm:ss
use_date_for_updated: false

# Pagination
per_page: 8
pagination_dir: page

# Themes
# theme: landscape
# theme: matery
theme: next

# Deployment
deploy:
type: git
repo:
# github: github@github.com:user/project.git,gh-pages
# coding: coding@coding.net:user/project.git,coding-pages
gitee:
url: git@gitee.com:ryanjie/ryanjie.git
branch: gt-pages
message: "Site updated: {{ now('YYYY-MM-DD HH:mm:ss') }}"
ignore_pattern:
[folder]: regexp # or you could specify the ignore_pattern under a certain directory

# [hexo-filter-emoji](https://github.com/theme-next/hexo-filter-emoji)
githubEmojis:
enable: true
className: github-emoji
inject: true
styles:
customEmojis:

# [hexo-generator-feed](https://github.com/hexojs/hexo-generator-feed)
feed:
type:
- atom
# - rss2
path:
- atom.xml
# - rss2.xml
limit: 20
hub:
content:
content_limit: 140
content_limit_delim: " "
order_by: -date
icon: rss.svg
autodiscovery: true

# [hexo-generator-searchdb](https://github.com/theme-next/hexo-generator-searchdb)
search:
path: search.xml
field: all
content: true
format: raw

# [hexo-generator-sitemap](https://github.com/hexojs/hexo-generator-sitemap)
sitemap:
path: sitemap.xml
template: sitemap.xml
rel: false

# [hexo-renderer-marked](https://github.com/hexojs/hexo-renderer-marked)
marked:
gfm: true
pedantic: false
breaks: true
smartLists: true
smartypants: true
modifyAnchors: ""
autolink: true
sanitizeUrl: false
headerIds: true
prependRoot: false
external_link:
enable: false
exclude: []

# [hexo-server](https://github.com/hexojs/hexo-server)
server:
port: 4000
log: true
ip: 0.0.0.0
compress: false
header: true
serveStatic:
extensions:
- html

# [hexo-symbols-count-time](https://github.com/theme-next/hexo-symbols-count-time)
symbols_count_time:
symbols: true
time: true
total_symbols: true
total_time: true
exclude_codeblock: false

Others

source/tags/index.md

1
2
3
4
5
6
7
8
---
title: Tags
type: "tags"
description: Tag page.
comments: false
sitemap: false
date: 2018-06-06 17:25:30
---

w:zh:知识共享

creative-commons creative-commons-attribution creative-commons-noncommercial-us creative-commons-sharealike

Creative Commons Deed


您可以自由地:
  • 演绎 - 修改、转换或以本作品为基础进行创作。


惟须遵守下列条件:
  • 署名 - 您必须给出适当的署名,提供指向本许可协议的链接,同时标明是否(对原始作品)作了修改。您可以用任何合理的方式来署名,但是不得以任何方式暗示许可人为您或您的使用背书。

  • 非商业性使用 - 您不得将本作品用于商业目的。

  • 相同方式共享 - 如果您再混合、转换或者基于本作品进行创作,您必须基于与原先许可协议相同的许可协议分发您贡献的作品。

  • 没有附加限制 - 您不得适用法律术语或者技术措施从而限制其他人做许可协议允许的事情。


声明:
  • 您不必因为公共领域的作品要素而遵守许可协议,或者您的使用被可适用的例外或限制所允许。

  • 不提供担保。许可协议可能不会给与您意图使用的所必须的所有许可。例如,其他权利比如形象权、隐私权或人格权可能限制您如何使用作品。

正在加载今日诗词....
If you find my article useful, please feel free to appreciate it.