code: func HugoGenerator(ft transform.FromTo) error {
  	b := ft.From().Bytes()
  	if metaTagsCheck.Match(b) {
  		if _, err := ft.To().Write(b); err != nil {
  			helpers.DistinctWarnLog.Println("Failed to inject Hugo generator tag:", err)
  		}
  		return nil
  	}
  
  	head := "<head>"
  	replace := []byte(fmt.Sprintf("%s\n\t%s", head, hugoGeneratorTag))
  	newcontent := bytes.Replace(b, []byte(head), replace, 1)
  
  	if len(newcontent) == len(b) {
  		head := "<HEAD>"
  		replace := []byte(fmt.Sprintf("%s\n\t%s", head, hugoGeneratorTag))
  		newcontent = bytes.Replace(b, []byte(head), replace, 1)
  	}
  
  	if _, err := ft.To().Write(newcontent); err != nil {
  		helpers.DistinctWarnLog.Println("Failed to inject Hugo generator tag:", err)
  	}
  
  	return nil
  
  }
docs: // HugoGenerator injects a meta generator tag for Hugo if none present.