mirror of
https://github.com/gohugoio/hugo.git
synced 2024-12-24 03:33:50 +00:00
releaser: Update to new release notes location
This commit is contained in:
parent
22b213b1a4
commit
0d495d5373
1 changed files with 5 additions and 3 deletions
|
@ -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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue