Comments (5)
yml文档?
from hexo-deployer-git.
我只有修改 # Deployment 区段
# Hexo Configuration
## Docs: http://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/
# Site
title: Hexo
subtitle:
description:
author: John Doe
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:
# 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: landscape
# Deployment
## Docs: http://hexo.io/docs/deployment.html
deploy:
type: git
repo: https://github.com/pwchi/pwchi.github.com.git
branch: [branch]
message: [message]
cat package.json
{
"name": "hexo-site",
"version": "0.0.0",
"private": true,
"hexo": {
"version": "3.1.1"
},
"dependencies": {
"hexo": "^3.1.0",
"hexo-deployer-git": "0.0.4",
"hexo-generator-archive": "^0.1.2",
"hexo-generator-category": "^0.1.2",
"hexo-generator-feed": "^1.0.2",
"hexo-generator-index": "^0.1.2",
"hexo-generator-sitemap": "^1.0.1",
"hexo-generator-tag": "^0.1.1",
"hexo-renderer-ejs": "^0.1.0",
"hexo-renderer-markdown-it": "^3.3.1",
"hexo-renderer-stylus": "^0.2.0",
"hexo-server": "^0.1.2"
}
from hexo-deployer-git.
deploy:
type: git
repo: https://github.com/pwchi/pwchi.github.com.git
branch: [branch]
message: [message]
[branch]应该填写master- -,然后[message]填写你想要的信息。。。
from hexo-deployer-git.
感谢您,我把 branch 和 message 那两行删掉,问题就解决了。
我误会要让系统自动判断,就是在后面加 [branch], [message],导致执行 hexo deploy 一直失败。
from hexo-deployer-git.
咳,不用说您。。受不起。。
from hexo-deployer-git.
Related Issues (20)
- err: Error: Spawn failed at ChildProcess.<anonymous> HOT 9
- deploy自动将.deploy_git文件夹中的.html文件忽略 HOT 2
- 关于github开启Two factor authentication之后无法使用用户名密码提交 HOT 2
- "Verion 9 of Highlight.js has reached EOL." HOT 1
- Hexo Deploy done but no change in github page HOT 2
- It is not published on Github, and it runs without errors HOT 1
- There's something wrong with hexo D
- src must be a string or object describing the source HOT 1
- Added personal token in _config.yml but still can't access git HOT 3
- recommend add `timezone info` into default commit message
- hexo-deployer-git can not be installed HOT 1
- The `hexo d` respond `Error` but without a message. HOT 1
- After push,appear a new branch?how do I do that? HOT 2
- ERROR Deployer not found: git HOT 6
- 使用Github Actions还是无法避免此报错,如图 HOT 2
- How to remove stored username and personal access token? HOT 4
- npm ERR! code ENOENT npm ERR! syscall rename
- `hexo deploy` causing error occurred when `Clearing .deploy_git folder...` HOT 2
- Hexo One-Command Deployment Does Not Support GitHub Fine-Grained Personal Access Tokens HOT 2
- Error: The ayer theme could not be found. HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hexo-deployer-git.