From 052df8035ad29f02ed7a70ccb17411ec546a8663 Mon Sep 17 00:00:00 2001 From: aotian16 Date: Wed, 20 Nov 2024 22:46:50 +0800 Subject: [PATCH] init --- .gitignore | 25 +++++++++++++++++++++++++ .gitmodules | 6 ++++++ archetypes/default.md | 5 +++++ content/posts/my-first-post.md | 8 ++++++++ content/posts/test.md | 34 ++++++++++++++++++++++++++++++++++ hugo.toml | 5 +++++ themes/ananke | 1 + themes/hugo-theme-stack | 1 + 8 files changed, 85 insertions(+) create mode 100644 .gitignore create mode 100644 .gitmodules create mode 100644 archetypes/default.md create mode 100644 content/posts/my-first-post.md create mode 100644 content/posts/test.md create mode 100644 hugo.toml create mode 160000 themes/ananke create mode 160000 themes/hugo-theme-stack diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c407837 --- /dev/null +++ b/.gitignore @@ -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 diff --git a/.gitmodules b/.gitmodules new file mode 100644 index 0000000..bee96a7 --- /dev/null +++ b/.gitmodules @@ -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/ diff --git a/archetypes/default.md b/archetypes/default.md new file mode 100644 index 0000000..c6f3fce --- /dev/null +++ b/archetypes/default.md @@ -0,0 +1,5 @@ ++++ +title = '{{ replace .File.ContentBaseName "-" " " | title }}' +date = {{ .Date }} +draft = true ++++ diff --git a/content/posts/my-first-post.md b/content/posts/my-first-post.md new file mode 100644 index 0000000..cdae1c5 --- /dev/null +++ b/content/posts/my-first-post.md @@ -0,0 +1,8 @@ ++++ +title = 'My First Post' +date = 2024-11-20T03:48:45+08:00 +draft = true ++++ + + +test diff --git a/content/posts/test.md b/content/posts/test.md new file mode 100644 index 0000000..c5f9d78 --- /dev/null +++ b/content/posts/test.md @@ -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 +``` diff --git a/hugo.toml b/hugo.toml new file mode 100644 index 0000000..8422b28 --- /dev/null +++ b/hugo.toml @@ -0,0 +1,5 @@ +baseURL = 'https://example.org/' +languageCode = 'en-us' +title = 'My New Hugo Site' +# theme = 'hugo-theme-stack' +theme = 'ananke' diff --git a/themes/ananke b/themes/ananke new file mode 160000 index 0000000..40c8d5f --- /dev/null +++ b/themes/ananke @@ -0,0 +1 @@ +Subproject commit 40c8d5f5eea3034ce80b7c86d705da1027b638c4 diff --git a/themes/hugo-theme-stack b/themes/hugo-theme-stack new file mode 160000 index 0000000..839fbd0 --- /dev/null +++ b/themes/hugo-theme-stack @@ -0,0 +1 @@ +Subproject commit 839fbd0ecb5bba381f721f31f5195fb6517fc260