Skip to content

Commit

Permalink
releaser: Update to new release notes location
Browse files Browse the repository at this point in the history
  • Loading branch information
bep committed Aug 7, 2017
1 parent 22b213b commit 0d495d5
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions releaser/releasenotes_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand All @@ -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
}

Expand Down

0 comments on commit 0d495d5

Please sign in to comment.