hexo tags打开错误

查看:255
本文介绍了hexo tags打开错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

输入错命令导致把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:

解决方案

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

这篇关于hexo tags打开错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆