hugo

Unnamed repository; edit this file 'description' to name the repository.

git clone git://git.shimmy1996.com/hugo.git
commit ac12d51e7ea3a0ffb7d8053a10b6bf6acf1235ae
parent 3fbc75534d1acda2be1c597aa77c919d3a02659d
Author: Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Date:   Thu, 15 Mar 2018 08:52:20 +0100

create: Remove archetype title/date warning

Closes #4504

Diffstat:
Mcreate/content_template_handler.go | 9---------
1 file changed, 0 insertions(+), 9 deletions(-)
diff --git 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
 
 }