archetypes

This commit is contained in:
Yuri Zamyatin 2024-06-09 01:20:14 +04:00
parent a20589f2be
commit b3f8db6856
4 changed files with 9 additions and 5 deletions

View File

@ -2,4 +2,8 @@
Some styling and general logic of my website, separated from content. No extra abstractions. Some styling and general logic of my website, separated from content. No extra abstractions.
Templates to copy are in the `init` directory. ```bash
cp themes/yrzam/init/hugo.yaml . # site config
hugo new _index.md --kind home # home template
hugo new yoursection --kind section # list template
```

View File

@ -0,0 +1,4 @@
---
linkTitle: "{{ .File.ContentBaseName | humanize | lower }}"
title: "{{ .File.ContentBaseName | humanize }}"
---

View File

@ -1,4 +0,0 @@
---
linkTitle: "name"
Title: "Long name"
---