hexo tags打开错误

发布于 2022-09-04 12:21:02 字数 2982 浏览 11 评论 0

输入错命令导致把hexo重置了
重新设置了一下其他正常,就是点开tags标签提示

TypeError: The header content contains invalid characters
   at ServerResponse.OutgoingMessage.setHeader (_http_outgoing.js:358:11)
   at E:\GitHub\hexo\node_modules\hexo-server\lib\middlewares\route.js:27:11
   at call (E:\GitHub\hexo\node_modules\hexo-server\node_modules\connect\index.js:239:7)
   at next (E:\GitHub\hexo\node_modules\hexo-server\node_modules\connect\index.js:183:5)
   at compression (E:\GitHub\hexo\node_modules\hexo-server\node_modules\compression\index.js:218:5)
   at call (E:\GitHub\hexo\node_modules\hexo-server\node_modules\connect\index.js:239:7)
   at next (E:\GitHub\hexo\node_modules\hexo-server\node_modules\connect\index.js:183:5)
   at E:\GitHub\hexo\node_modules\hexo-server\lib\middlewares\header.js:6:5
   at call (E:\GitHub\hexo\node_modules\hexo-server\node_modules\connect\index.js:239:7)
   at next (E:\GitHub\hexo\node_modules\hexo-server\node_modules\connect\index.js:183:5)
   at Function.handle (E:\GitHub\hexo\node_modules\hexo-server\node_modules\connect\index.js:186:3)
   at Server.app (E:\GitHub\hexo\node_modules\hexo-server\node_modules\connect\index.js:51:37)
   at emitTwo (events.js:106:13)
   at Server.emit (events.js:191:7)
   at HTTPParser.parserOnIncoming [as onIncoming] (_http_server.js:546:12)
   at HTTPParser.parserOnHeadersComplete (_http_common.js:99:23)

主题和根目录配置文件开启了tags,而且publictags下有标签文件夹。

好奇怪的问题= =
贴上根目录配置文件

# Hexo Configuration
## Docs: http://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/

# Site
title: Wellcome
subtitle:
description:
author: fff
language:
timezone:

# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: http://yoursite.com
root: /
permalink: :year/:month/:day/:title/
permalink_defaults:

# 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
titlecase: false # Transform title into titlecase
external_link: true # Open external links in new tab
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: true

# Category & Tag
default_category: uncategorized
category_map:
tag_map:

# 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

# Pagination
## Set per_page to 0 to disable pagination
per_page: 10
pagination_dir: page

# Extensions
## Plugins: http://hexo.io/plugins/
## Themes: http://hexo.io/themes/
theme: yilia

# Deployment
## Docs: http://hexo.io/docs/deployment.html
deploy:
  type:

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

数理化全能战士 2022-09-11 12:21:03

把hexo d当成了hexo g的作用。。

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文