From b3f8db6856be160c8f09e60011dddbb892d2a95c Mon Sep 17 00:00:00 2001 From: Yuri Zamyatin Date: Sun, 9 Jun 2024 01:20:14 +0400 Subject: [PATCH] archetypes --- README.md | 6 +++++- init/content_root_index.md => archetypes/home.md | 0 archetypes/section/_index.md | 4 ++++ init/content_list_index.md | 4 ---- 4 files changed, 9 insertions(+), 5 deletions(-) rename init/content_root_index.md => archetypes/home.md (100%) create mode 100644 archetypes/section/_index.md delete mode 100644 init/content_list_index.md diff --git a/README.md b/README.md index 48e6434..facad5c 100644 --- a/README.md +++ b/README.md @@ -2,4 +2,8 @@ Some styling and general logic of my website, separated from content. No extra abstractions. -Templates to copy are in the `init` directory. \ No newline at end of file +```bash +cp themes/yrzam/init/hugo.yaml . # site config +hugo new _index.md --kind home # home template +hugo new yoursection --kind section # list template +``` diff --git a/init/content_root_index.md b/archetypes/home.md similarity index 100% rename from init/content_root_index.md rename to archetypes/home.md diff --git a/archetypes/section/_index.md b/archetypes/section/_index.md new file mode 100644 index 0000000..6543fa9 --- /dev/null +++ b/archetypes/section/_index.md @@ -0,0 +1,4 @@ +--- +linkTitle: "{{ .File.ContentBaseName | humanize | lower }}" +title: "{{ .File.ContentBaseName | humanize }}" +--- diff --git a/init/content_list_index.md b/init/content_list_index.md deleted file mode 100644 index 9d06c8e..0000000 --- a/init/content_list_index.md +++ /dev/null @@ -1,4 +0,0 @@ ---- -linkTitle: "name" -Title: "Long name" ----