next-theme / hexo-theme-next

🎉 Elegant and powerful theme for Hexo.
https://theme-next.js.org
Other
2.41k stars 426 forks source link

'.git' correlation processing #17

Closed Rsweater closed 4 years ago

Rsweater commented 4 years ago

Please follow this Issue template to provide relevant information, such as source code repositories, blog links, and screenshots, which will help us investigate. 请按照此 Issue 模版提供相关信息,例如源码仓库、博客链接和屏幕截图,这将有助于我们进行调查。

Issue Checklist


Expected behavior

Actual behavior

Every time "deploy" will make the following error. I don't know what caused it.Maybe the reason for my poor English is that I did not find the relevant issue image

Steps to reproduce the behavior

  1. hexo g -d
  2. N/A
  3. N/A

Environment Information

Node.js and NPM Information

![image](https://user-images.githubusercontent.com/49091147/83480228-56384280-a4cd-11ea-9152-2bd26fd4170c.png)

Package dependencies Information

![image](https://user-images.githubusercontent.com/49091147/83480282-71a34d80-a4cd-11ea-8b78-82e2e8b83849.png)

Hexo Configuration

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

# Site
title: Rsweater's Blog
subtitle: '最好的状态来源于好的作息!最高的效率来源于好的资源配置!'
description: '这里有Python、GIS相关的小笔记!'
keywords: Python GiS GDAL 爬虫 数据分析 机器学习 日常笔记
author: 一线毛衣
language: zh-CN
timezone: 'Asia/Shanghai'

# URL

url: https://bwchen1223.xyz
root: /
## 文章 永久链接 格式
permalink: :year/:month/:day/:title/
permalink_defaults:
pretty_urls:
  trailing_index: true # 是否在永久链接中保留尾部的 index.html
  trailing_html: true # 是否在永久链接中保留尾部的 .html

# Directory
source_dir: source # 资源文件夹,用来存放内容
public_dir: public # 公共文件夹,用来存放生成的站点信息
tag_dir: tags # 标签文件加
archive_dir: archives # 归档文件夹
category_dir: categories # 分类文件夹
code_dir: downloads/code # Include code 文件夹,source_dir 下的子目录
i18n_dir: :lang # 国际化(i18n)文件夹
skip_render: 
# 跳过指定文件的渲染。匹配到的文件将会被不做改动地复制到 public 目录中。
# 您可使用 glob 表达式来匹配路径。
# 例如:

# skip_render: "mypage/**/*"
# # 将会直接将 `source/mypage/index.html` 和 `source/mypage/code.js` 不做改动地输出到 'public' 目录
# # 你也可以用这种方法来跳过对指定文章文件的渲染
# skip_render: "_posts/test-post.md"
# # 这将会忽略对 'test-post.md' 的渲染

# Writing
new_post_name: :title.md # File name of new posts
default_layout: post
titlecase: false # 把标题转换为 title case
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: false # 启动Asset文件夹
relative_link: false # 把链接改为与根目录的相对位址
future: true # 显示未来的文章
highlight: # 代码块设置
  enable: true # 高亮
  line_number: true # 显示行数
  auto_detect: false # 如果未指定语言,则启用自动检测
  tab_replace: '' # 用N个空格代替tabs,如果值为空,则不会替换
  wrap: true # Wrap the code block in <table>
  hljs: false # Use the hljs-* prefix for CSS classes

# 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: 5
  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
## Use post's date for updated date unless set in front-matter
use_date_for_updated: false

# 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: next
plugins: 
  - hexo-abbrlink
  - hexo-deployer-git
  - hexo-filter-flowchart
  - hexo-generator-archive
  - hexo-generator-baidu-sitemap
  - hexo-generator-category
  - hexo-generator-feed
  - hexo-generator-index
  - hexo-generator-json-content
  - hexo-generator-searchdb
  - hexo-generator-sitemap
  - hexo-generator-tag
  - hexo-helper-qrcode
  - hexo-related-popular-posts
  - hexo-renderer-ejs
  - hexo-renderer-less
  - hexo-renderer-markdown-it-plus
  - hexo-renderer-marked
  - hexo-renderer-pandoc
  - hexo-renderer-stylus
  - hexo-server
  - hexo-symbols-count-time

# Deployment
## Docs: https://hexo.io/docs/deployment.html
deploy:
  type: git
  repo: 
    github: git@github.com:Rsweater/Rsweater.github.io.git
    # gitee: git@gitee.com:Rsweater_admin/Rsweater.github.io.git
    coding: https://e.coding.net/rsweater/rsweater.git
  branch: master

# hexo-admin authentification
admin:
  username: 一线毛衣
  password_hash: $2a$10$zC7a1xncVJumV9Ny/x01TunWI18j7UUt03Oj3.QzfypiBmFj2QZbC
  secret: bw_chen
  deployCommand: 'hexo-publish.bat'

search:
  path: search.xml
  field: post
  content: true
  format: html

# 添加站点地图sitemap
sitemap:
  path: sitemap.xml
baidusitemap:
  path: baidusitemap.xml

NexT Configuration

Emmm, today it's a new next. Do you want it all?I'll post it if I need to. The error seems to be related to '.git'.

Other Information

chrome, win10,

welcome[bot] commented 4 years ago

Thanks for opening this issue, maintainers will get back to you as soon as possible!

stevenjoezhang commented 4 years ago

Don't worry, this is not an error and can be ignored.

不用担心,这不是报错,可以忽略。

Rsweater commented 4 years ago

Don't worry, this is not an error and can be ignored.

不用担心,这不是报错,可以忽略。

Thank you very much! 感谢

Rsweater commented 4 years ago

Don't worry, this is not an error and can be ignored.

不用担心,这不是报错,可以忽略。

你好,现在好像遇到问题了,这个好像影响到了netlify的部署,试了好久都不行。 image

stevenjoezhang commented 4 years ago

这个仓库就是部署在 Netlify 上的,你可以参考一下: https://github.com/next-theme/theme-next-docs

Rsweater commented 4 years ago

这个仓库就是部署在 Netlify 上的,你可以参考一下: https://github.com/next-theme/theme-next-docs

已经解决了,应该是hexo站点配置过程中除了问题,重新做了初始化了一份,把原来的直接拷贝,装依赖就好了

Rsweater commented 4 years ago

这个仓库就是部署在 Netlify 上的,你可以参考一下: https://github.com/next-theme/theme-next-docs

感谢

stevenjoezhang commented 4 years ago

问题解决了就好~

github-actions[bot] commented 1 year ago

This thread has been automatically locked since there has not been any recent activity after it was closed. It is possible issue was solved or at least outdated. Feel free to open new for related bugs.