mirror of
https://github.com/yrzam/yrzam-hugo-theme.git
synced 2025-04-11 08:52:29 +00:00
archetypes
This commit is contained in:
parent
a20589f2be
commit
b3f8db6856
@ -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.
|
||||
```bash
|
||||
cp themes/yrzam/init/hugo.yaml . # site config
|
||||
hugo new _index.md --kind home # home template
|
||||
hugo new yoursection --kind section # list template
|
||||
```
|
||||
|
4
archetypes/section/_index.md
Normal file
4
archetypes/section/_index.md
Normal file
@ -0,0 +1,4 @@
|
||||
---
|
||||
linkTitle: "{{ .File.ContentBaseName | humanize | lower }}"
|
||||
title: "{{ .File.ContentBaseName | humanize }}"
|
||||
---
|
@ -1,4 +0,0 @@
|
||||
---
|
||||
linkTitle: "name"
|
||||
Title: "Long name"
|
||||
---
|
Loading…
Reference in New Issue
Block a user