添加项目文件
This commit is contained in:
6
.gitmodules
vendored
Normal file
6
.gitmodules
vendored
Normal file
@@ -0,0 +1,6 @@
|
||||
[submodule "themes/dream"]
|
||||
path = themes/dream
|
||||
url = https://github.com/g1eny0ung/hugo-theme-dream.git
|
||||
[submodule "themes/PaperMod"]
|
||||
path = themes/PaperMod
|
||||
url = https://github.com/adityatelange/hugo-PaperMod.git
|
||||
5
archetypes/default.md
Normal file
5
archetypes/default.md
Normal file
@@ -0,0 +1,5 @@
|
||||
+++
|
||||
title = '{{ replace .File.ContentBaseName "-" " " | title }}'
|
||||
date = {{ .Date }}
|
||||
draft = true
|
||||
+++
|
||||
6
hugo.toml
Normal file
6
hugo.toml
Normal file
@@ -0,0 +1,6 @@
|
||||
baseURL = 'https://example.org/'
|
||||
languageCode = 'zh-Hans'
|
||||
title = '清水阁'
|
||||
theme = 'PaperMod'
|
||||
defaultContentLanguage = "zh"
|
||||
hasCJKLanguage = true
|
||||
19
static/admin/config.yml
Normal file
19
static/admin/config.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
backend:
|
||||
name: git
|
||||
repo: "/var/lib/gitea/data/gitea-repositories/xianliticn/qingshuige-hugo.git"
|
||||
branch: main
|
||||
auth_type: token
|
||||
token: "94e6d08b325a713f9b3942d83539ec9f30b510b5"
|
||||
media_folder: "static/uploads"
|
||||
public_folder: "/uploads"
|
||||
|
||||
collections:
|
||||
- name: "blog"
|
||||
label: "Blog"
|
||||
folder: "content/blog"
|
||||
create: true
|
||||
slug: "{{slug}}"
|
||||
fields:
|
||||
- { label: "Title", name: "title", widget: "string" }
|
||||
- { label: "Date", name: "date", widget: "datetime" }
|
||||
- { label: "Body", name: "body", widget: "markdown" }
|
||||
13
static/admin/index.html
Normal file
13
static/admin/index.html
Normal file
@@ -0,0 +1,13 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta name="robots" content="noindex" />
|
||||
<title>Content Manager</title>
|
||||
</head>
|
||||
<body>
|
||||
<!-- Include the script that builds the page and powers Decap CMS -->
|
||||
<script src="https://unpkg.com/decap-cms@^3.0.0/dist/decap-cms.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
1
themes/PaperMod
Submodule
1
themes/PaperMod
Submodule
Submodule themes/PaperMod added at 3bb0ca281f
1
themes/dream
Submodule
1
themes/dream
Submodule
Submodule themes/dream added at 67fbe5265f
Reference in New Issue
Block a user