init
This commit is contained in:
commit
052df8035a
25
.gitignore
vendored
Normal file
25
.gitignore
vendored
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
# Created by https://www.toptal.com/developers/gitignore/api/hugo
|
||||||
|
# Edit at https://www.toptal.com/developers/gitignore?templates=hugo
|
||||||
|
|
||||||
|
### Hugo ###
|
||||||
|
# Generated files by hugo
|
||||||
|
/public/
|
||||||
|
/resources/_gen/
|
||||||
|
/assets/jsconfig.json
|
||||||
|
hugo_stats.json
|
||||||
|
|
||||||
|
# Executable may be added to repository
|
||||||
|
hugo.exe
|
||||||
|
hugo.darwin
|
||||||
|
hugo.linux
|
||||||
|
|
||||||
|
# Temporary lock file while building
|
||||||
|
/.hugo_build.lock
|
||||||
|
|
||||||
|
# End of https://www.toptal.com/developers/gitignore/api/hugo
|
||||||
|
|
||||||
|
|
||||||
|
.DS_Store
|
||||||
|
node_modules
|
||||||
|
dist
|
||||||
|
tmp
|
6
.gitmodules
vendored
Normal file
6
.gitmodules
vendored
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
[submodule "themes/ananke"]
|
||||||
|
path = themes/ananke
|
||||||
|
url = https://github.com/theNewDynamic/gohugo-theme-ananke.git
|
||||||
|
[submodule "themes/hugo-theme-stack"]
|
||||||
|
path = themes/hugo-theme-stack
|
||||||
|
url = https://github.com/CaiJimmy/hugo-theme-stack/
|
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
|
||||||
|
+++
|
8
content/posts/my-first-post.md
Normal file
8
content/posts/my-first-post.md
Normal file
@ -0,0 +1,8 @@
|
|||||||
|
+++
|
||||||
|
title = 'My First Post'
|
||||||
|
date = 2024-11-20T03:48:45+08:00
|
||||||
|
draft = true
|
||||||
|
+++
|
||||||
|
|
||||||
|
|
||||||
|
test
|
34
content/posts/test.md
Normal file
34
content/posts/test.md
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
+++
|
||||||
|
title = 'Test'
|
||||||
|
date = 2024-11-20T02:40:33+08:00
|
||||||
|
draft = true
|
||||||
|
+++
|
||||||
|
|
||||||
|
install
|
||||||
|
|
||||||
|
```sh
|
||||||
|
snap install hugo
|
||||||
|
```
|
||||||
|
|
||||||
|
version check
|
||||||
|
|
||||||
|
```sh
|
||||||
|
hugo version
|
||||||
|
```
|
||||||
|
|
||||||
|
new site
|
||||||
|
|
||||||
|
```sh
|
||||||
|
hugo new site qefee
|
||||||
|
cd qefee
|
||||||
|
git init
|
||||||
|
git submodule add https://github.com/theNewDynamic/gohugo-theme-ananke.git themes/ananke
|
||||||
|
echo "theme = 'ananke'" >> hugo.toml
|
||||||
|
hugo server
|
||||||
|
```
|
||||||
|
|
||||||
|
add content
|
||||||
|
|
||||||
|
```sh
|
||||||
|
hugo new content content/posts/test.md
|
||||||
|
```
|
5
hugo.toml
Normal file
5
hugo.toml
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
baseURL = 'https://example.org/'
|
||||||
|
languageCode = 'en-us'
|
||||||
|
title = 'My New Hugo Site'
|
||||||
|
# theme = 'hugo-theme-stack'
|
||||||
|
theme = 'ananke'
|
1
themes/ananke
Submodule
1
themes/ananke
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 40c8d5f5eea3034ce80b7c86d705da1027b638c4
|
1
themes/hugo-theme-stack
Submodule
1
themes/hugo-theme-stack
Submodule
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 839fbd0ecb5bba381f721f31f5195fb6517fc260
|
Loading…
x
Reference in New Issue
Block a user