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" ----