create: Remove archetype title/date warning
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 15 Mar 2018 07:52:20 +0000 (08:52 +0100)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Thu, 15 Mar 2018 07:52:20 +0000 (08:52 +0100)
Closes #4504

create/content_template_handler.go

index 99f2d1fa32869d8a5938f142040bfa03db2d8e94..705efbd2096f20598e262da1c0d18e133e0b6e0d 100644 (file)
@@ -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
 
 }