Michelle's Home

回望来时的路。。。


  • 首页

  • 归档

  • 分类

  • 标签

  • 关于

  • 搜索

Hexo 多个终端同步开发的问题

发表于 2019-01-16 | 更新于 2019-10-09

一端

如果想在多个终端上开发博客,并且还要保持代码同步,可以按照一下步骤操作
1.在已经搭建好Hexo环境的本地项目上创建分支src,需要先在跟目录下执行git init,把本地代码变成一个git项目。默认是在master分支,执行

1
git checkout -b src

将项目切换到src分支,因为我们在执行hexo d的时候,默认是将public文件夹下的内容提交到git项目的master分支上。

阅读全文 »

hexo配置-打造自己的博客(基于landscape主题)

发表于 2019-01-14 | 更新于 2019-10-09 | 分类于 Hexo

_config.yml

_config.yml 采用YAML语法格式,具体语法自行学习 。
_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
# Hexo Configuration
## Docs: https://hexo.io/docs/configuration.html
## Source: https://github.com/hexojs/hexo/

# Site
title: Hexo #网站标题
subtitle: #网站副标题
description: #网站描述
author: John Doe #作者
language: #语言
timezone: #网站时区。Hexo 默认使用您电脑的时区。时区列表。比如说:America/New_York, Japan, 和 UTC 。

# URL
## If your site is put in a subdirectory, set url as 'http://yoursite.com/child' and root as '/child/'
url: http://yoursite.com #你的站点Url
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 #Include code 文件夹
i18n_dir: :lang #国际化(i18n)文件夹
skip_render: #跳过指定文件的渲染,您可使用 glob 表达式来匹配路径。

# Writing
new_post_name: :title.md # 新文章的文件名称
default_layout: post #预设布局
titlecase: false # 把标题转换为 title case
external_link: true # 在新标签中打开链接
filename_case: 0 #把文件名称转换为 (1) 小写或 (2) 大写
render_drafts: false #是否显示草稿
post_asset_folder: false #是否启动 Asset 文件夹
relative_link: false #把链接改为与根目录的相对位址
future: true #显示未来的文章
highlight: #内容中代码块的设置
enable: true
line_number: true
auto_detect: false
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: https://hexo.io/plugins/
## Themes: https://hexo.io/themes/
theme: landscape #主题名称

# Deployment
## Docs: https://hexo.io/docs/deployment.html
# 部署部分的设置
deploy:
type: #类型,常用的git

修改Banner图

替换themes/landscape/source/css/images/banner.jpg下的图片即可。
注意命名一定要是banner.jpg

阅读全文 »

hexo+github搭建自己的博客

发表于 2019-01-14 | 更新于 2019-10-09 | 分类于 Hexo

hexo 简介

Hexo 是一个快速、简洁且高效的博客框架。Hexo 使用 Markdown(或其他渲染引擎)解析文章,在几秒内,即可利用靓丽的主题生成静态网页。

阅读全文 »

Mac系统安装gitk

发表于 2019-01-12 | 更新于 2019-10-09 | 分类于 Mac

gitk for mac

1.如果没有安装brew,则需要先安装brew

1
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

阅读全文 »

Hello World

发表于 2019-01-11 | 更新于 2019-10-09 | 分类于 Hexo

Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub.

Quick Start

阅读全文 »
12
江纳纳

江纳纳

一直忙于奔跑的孩纸,现在需要回头数数自己留下的脚印了。。。

15 日志
8 分类
9 标签
RSS
GitHub
© 2019 江纳纳
由 Hexo 强力驱动 v3.9.0
|
主题 – NexT.Pisces v6.7.0