From: Bjørn Erik Pedersen Date: Thu, 15 Mar 2018 07:52:20 +0000 (+0100) Subject: create: Remove archetype title/date warning X-Git-Tag: v0.38~32 X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ac12d51e7ea3a0ffb7d8053a10b6bf6acf1235ae;p=brevno-suite%2Fhugo create: Remove archetype title/date warning Closes #4504 --- diff --git a/create/content_template_handler.go b/create/content_template_handler.go index 99f2d1fa..705efbd2 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 }