diff options
author | Bjørn Erik Pedersen <[email protected]> | 2017-08-07 08:54:40 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2017-08-07 08:54:40 +0200 |
commit | 0d495d537385d4777980987fc1972dbfbbd6bff2 (patch) | |
tree | 6445c5f41745d5c6a56c7c2ee14399305a9531b6 | |
parent | 22b213b1a4fb1803d798232ce94339732a604857 (diff) | |
download | hugo-0d495d537385d4777980987fc1972dbfbbd6bff2.tar.gz hugo-0d495d537385d4777980987fc1972dbfbbd6bff2.zip |
releaser: Update to new release notes location
-rw-r--r-- | releaser/releasenotes_writer.go | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/releaser/releasenotes_writer.go b/releaser/releasenotes_writer.go index 09570be2c..0c6f297a4 100644 --- a/releaser/releasenotes_writer.go +++ b/releaser/releasenotes_writer.go @@ -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 } |