forked from pi/hugo_blog_source
添加hugo init 和 LoveIt
Signed-off-by: Hu.Nan <nhu@linx-info.com> 新文件: ../.gitmodules 新文件: archetypes/default.md 新文件: config.toml 新文件: data/.gitkeep 新文件: layouts/.gitkeep 新文件: static/.gitkeep 新文件: themes/LoveIt
This commit is contained in:
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[submodule "blog/themes/LoveIt"]
|
||||||
|
path = blog/themes/LoveIt
|
||||||
|
url = https://github.com/dillonzq/LoveIt.git
|
||||||
6
blog/archetypes/default.md
Normal file
6
blog/archetypes/default.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
title: "{{ replace .Name "-" " " | title }}"
|
||||||
|
date: {{ .Date }}
|
||||||
|
draft: true
|
||||||
|
---
|
||||||
|
|
||||||
57
blog/config.toml
Normal file
57
blog/config.toml
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
#baseURL = "http://example.org/"
|
||||||
|
#languageCode = "en-us"
|
||||||
|
#title = "My New Hugo Site"
|
||||||
|
|
||||||
|
baseURL = "http://example.org/"
|
||||||
|
# [en, zh-cn, fr, ...] 设置默认的语言
|
||||||
|
defaultContentLanguage = "zh-cn"
|
||||||
|
# 网站语言, 仅在这里 CN 大写
|
||||||
|
languageCode = "zh-CN"
|
||||||
|
# 是否包括中日韩文字
|
||||||
|
hasCJKLanguage = true
|
||||||
|
# 网站标题
|
||||||
|
title = "我的全新 Hugo 网站"
|
||||||
|
|
||||||
|
# 更改使用 Hugo 构建网站时使用的默认主题
|
||||||
|
theme = "LoveIt"
|
||||||
|
|
||||||
|
[params]
|
||||||
|
# LoveIt 主题版本
|
||||||
|
version = "0.2.X"
|
||||||
|
|
||||||
|
[menu]
|
||||||
|
[[menu.main]]
|
||||||
|
identifier = "posts"
|
||||||
|
# 你可以在名称 (允许 HTML 格式) 之前添加其他信息, 例如图标
|
||||||
|
pre = ""
|
||||||
|
# 你可以在名称 (允许 HTML 格式) 之后添加其他信息, 例如图标
|
||||||
|
post = ""
|
||||||
|
name = "文章"
|
||||||
|
url = "/posts/"
|
||||||
|
# 当你将鼠标悬停在此菜单链接上时, 将显示的标题
|
||||||
|
title = ""
|
||||||
|
weight = 1
|
||||||
|
[[menu.main]]
|
||||||
|
identifier = "tags"
|
||||||
|
pre = ""
|
||||||
|
post = ""
|
||||||
|
name = "标签"
|
||||||
|
url = "/tags/"
|
||||||
|
title = ""
|
||||||
|
weight = 2
|
||||||
|
[[menu.main]]
|
||||||
|
identifier = "categories"
|
||||||
|
pre = ""
|
||||||
|
post = ""
|
||||||
|
name = "分类"
|
||||||
|
url = "/categories/"
|
||||||
|
title = ""
|
||||||
|
weight = 3
|
||||||
|
|
||||||
|
# Hugo 解析文档的配置
|
||||||
|
[markup]
|
||||||
|
# 语法高亮设置 (https://gohugo.io/content-management/syntax-highlighting)
|
||||||
|
[markup.highlight]
|
||||||
|
# false 是必要的设置 (https://github.com/dillonzq/LoveIt/issues/158)
|
||||||
|
noClasses = false
|
||||||
|
|
||||||
0
blog/data/.gitkeep
Normal file
0
blog/data/.gitkeep
Normal file
0
blog/layouts/.gitkeep
Normal file
0
blog/layouts/.gitkeep
Normal file
0
blog/static/.gitkeep
Normal file
0
blog/static/.gitkeep
Normal file
1
blog/themes/LoveIt
Submodule
1
blog/themes/LoveIt
Submodule
Submodule blog/themes/LoveIt added at f787a4e5ad
Reference in New Issue
Block a user