shithub: hugo

Download patch

ref: ac12d51e7ea3a0ffb7d8053a10b6bf6acf1235ae
parent: 3fbc75534d1acda2be1c597aa77c919d3a02659d
author: Bjørn Erik Pedersen <[email protected]>
date: Thu Mar 15 04:52:20 EDT 2018

create: Remove archetype title/date warning

Closes #4504

--- a/create/content_template_handler.go
+++ b/create/content_template_handler.go
@@ -137,15 +137,6 @@
 
 	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
 
 }