summaryrefslogtreecommitdiffhomepage
path: root/create
diff options
context:
space:
mode:
authorBjørn Erik Pedersen <[email protected]>2018-03-15 08:52:20 +0100
committerBjørn Erik Pedersen <[email protected]>2018-03-15 08:52:20 +0100
commitac12d51e7ea3a0ffb7d8053a10b6bf6acf1235ae (patch)
treefc0a91ba382b6d9df3a57c1828b0937d08e46ae4 /create
parent3fbc75534d1acda2be1c597aa77c919d3a02659d (diff)
downloadhugo-ac12d51e7ea3a0ffb7d8053a10b6bf6acf1235ae.tar.gz
hugo-ac12d51e7ea3a0ffb7d8053a10b6bf6acf1235ae.zip
create: Remove archetype title/date warning
Closes #4504
Diffstat (limited to 'create')
-rw-r--r--create/content_template_handler.go9
1 files changed, 0 insertions, 9 deletions
diff --git a/create/content_template_handler.go b/create/content_template_handler.go
index 99f2d1fa3..705efbd20 100644
--- a/create/content_template_handler.go
+++ b/create/content_template_handler.go
@@ -137,15 +137,6 @@ func executeArcheTypeAsTemplate(s *hugolib.Site, kind, targetPath, archetypeFile
archetypeContent = []byte(archetypeShortcodeReplacementsPost.Replace(buff.String()))
- if !bytes.Contains(archetypeContent, []byte("date")) || !bytes.Contains(archetypeContent, []byte("title")) {
- // TODO(bep) remove some time in the future.
- s.Log.FEEDBACK.Println(fmt.Sprintf(`WARNING: date and/or title missing from archetype file %q.
-From Hugo 0.24 this must be provided in the archetype file itself, if needed. Example:
-%s
-`, archetypeFilename, ArchetypeTemplateTemplate))
-
- }
-
return archetypeContent, nil
}