mirror of
https://github.com/yrzam/yrzam-hugo-theme.git
synced 2025-12-10 01:39:05 +00:00
archetypes
This commit is contained in:
@@ -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
|
||||||
|
```
|
||||||
|
|||||||
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"
|
|
||||||
---
|
|
||||||
Reference in New Issue
Block a user