添加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:
Hu.Nan
2021-02-08 16:21:15 +08:00
parent ab0d7fc1f8
commit efbd4c2fc5
7 changed files with 67 additions and 0 deletions

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "blog/themes/LoveIt"]
path = blog/themes/LoveIt
url = https://github.com/dillonzq/LoveIt.git

View File

@@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

57
blog/config.toml Normal file
View 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
View File

0
blog/layouts/.gitkeep Normal file
View File

0
blog/static/.gitkeep Normal file
View File

1
blog/themes/LoveIt Submodule

Submodule blog/themes/LoveIt added at f787a4e5ad