Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Archetypes — identifier needs to be unique #296

Open
h-enk opened this issue Jul 7, 2022 · 0 comments
Open

Archetypes — identifier needs to be unique #296

h-enk opened this issue Jul 7, 2022 · 0 comments

Comments

@h-enk
Copy link
Member

h-enk commented Jul 7, 2022

876ad1ccc992ebfce224fdac25e0470066187fd8

Note that (to be documented), identifier needs to be unique. However (unfortunately), can't use .Parent for this.

Example ./archetypes/docs.md

---
title: "{{ replace .Name "-" " " | title }}"
description: ""
lead: ""
date: {{ .Date }}
lastmod: {{ .Date }}
draft: true
images: []
menu:
  docs:
    parent: ""
    identifier: "{{ .Name }}"
weight: 999
toc: true
---

See also:

Originally posted by @h-enk in thuliteio/doks#806 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant