releaser: Update to new release notes location
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 7 Aug 2017 06:54:40 +0000 (08:54 +0200)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Mon, 7 Aug 2017 06:54:40 +0000 (08:54 +0200)
releaser/releasenotes_writer.go

index 09570be2cfb5d29042a620d3a5027f279681d060..0c6f297a4fb18415a6f09dc14b96a7231b87159e 100644 (file)
@@ -234,7 +234,7 @@ func (r *ReleaseHandler) writeReleaseNotesToTemp(version string, infosMain, info
 
 func (r *ReleaseHandler) writeReleaseNotesToDocs(title, sourceFilename string) (string, error) {
        targetFilename := filepath.Base(sourceFilename)
-       contentDir := hugoFilepath("docs/content/release-notes")
+       contentDir := hugoFilepath("docs/content/news")
        targetFullFilename := filepath.Join(contentDir, targetFilename)
 
        if r.try {
@@ -257,10 +257,12 @@ func (r *ReleaseHandler) writeReleaseNotesToDocs(title, sourceFilename string) (
        if _, err := f.WriteString(fmt.Sprintf(`
 ---
 date: %s
-title: %s
+title: %q
+description: %q
+categories: ["Releases"]
 ---
 
-       `, time.Now().Format("2006-01-02"), title)); err != nil {
+       `, time.Now().Format("2006-01-02"), title, title)); err != nil {
                return "", err
        }