ref: 0d495d537385d4777980987fc1972dbfbbd6bff2
parent: 22b213b1a4fb1803d798232ce94339732a604857
author: Bjørn Erik Pedersen <[email protected]>
date: Mon Aug 7 04:54:40 EDT 2017
releaser: Update to new release notes location
--- a/releaser/releasenotes_writer.go
+++ b/releaser/releasenotes_writer.go
@@ -234,7 +234,7 @@
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 @@
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
}