summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBigCoke233 <hi@guhub.cn>2026-02-01 00:31:16 +0800
committerBigCoke233 <hi@guhub.cn>2026-02-01 00:31:16 +0800
commitdc2a176678f5f71deb29382886ce0f2865391c62 (patch)
tree7fc6ddd328a6bb73dc37dc2d7007c8f530cf6c5e
parent55b4ef5c75e462788a717242d8f5428aaf25b2cf (diff)
docs: move _templates to archetypes
-rw-r--r--.gitignore2
-rw-r--r--archetypes/default.md10
-rw-r--r--archetypes/weekly.md (renamed from content/_templates/weekly.md)0
-rw-r--r--content/_templates/post.md10
4 files changed, 10 insertions, 12 deletions
diff --git a/.gitignore b/.gitignore
index d1ff4def..dc69f411 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,8 +6,6 @@ content/posts/_template.md
# ignore since no content is generated here
/resources
-# ignore archetypes since no archetype is used
-/archetypes
.DS_Store
/content/.obsidian
/content/templates
diff --git a/archetypes/default.md b/archetypes/default.md
new file mode 100644
index 00000000..e9bad196
--- /dev/null
+++ b/archetypes/default.md
@@ -0,0 +1,10 @@
++++
+title = ''
+subtitle = ''
+slug = ''
+tags = []
+categories = ''
+date = {{ .Date }}
+draft = true
+toc = true
++++
diff --git a/content/_templates/weekly.md b/archetypes/weekly.md
index f7d23fe3..f7d23fe3 100644
--- a/content/_templates/weekly.md
+++ b/archetypes/weekly.md
diff --git a/content/_templates/post.md b/content/_templates/post.md
deleted file mode 100644
index a09920e3..00000000
--- a/content/_templates/post.md
+++ /dev/null
@@ -1,10 +0,0 @@
----
-title:
-subtitle:
-slug:
-tags:
-categories:
-date:
-draft: true
-toc: true
----