create: Remove archetype title/date warning

Closes #4504
This commit is contained in:
Bjørn Erik Pedersen 2018-03-15 08:52:20 +01:00
parent 3fbc75534d
commit ac12d51e7e
No known key found for this signature in database
GPG key ID: 330E6E2BD4859D8F

View 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
}