commands/new: Embed site and theme skeletons

The skeletons are used when creating new sites and themes with the CLI.

Closes #11358
This commit is contained in:
Joe Mooring 2023-08-16 15:07:01 -07:00 committed by Bjørn Erik Pedersen
parent 90944aa261
commit b6538532f4
41 changed files with 465 additions and 203 deletions

View file

@ -42,7 +42,7 @@ const (
// DefaultArchetypeTemplateTemplate is the template used in 'hugo new site'
// and the template we use as a fall back.
DefaultArchetypeTemplateTemplate = `---
title: "{{ replace .Name "-" " " | title }}"
title: "{{ replace .File.ContentBaseName "-" " " | title }}"
date: {{ .Date }}
draft: true
---