aboutsummaryrefslogtreecommitdiffhomepage
path: root/releaser
diff options
context:
space:
mode:
authorDigitalcraftsman <[email protected]>2021-07-21 06:07:31 -0700
committerBjørn Erik Pedersen <[email protected]>2021-07-21 16:35:38 +0200
commita352d19d881474f53d01791be4febd305453a9d6 (patch)
tree39ff86799bc57fe0b44dc92441378881c6cf0c10 /releaser
parent11bb67dcfd323e47a4e6cb31e054bb0ade13c9b4 (diff)
downloadhugo-a352d19d881474f53d01791be4febd305453a9d6.tar.gz
hugo-a352d19d881474f53d01791be4febd305453a9d6.zip
Fix theme count in release notes
Diffstat (limited to 'releaser')
-rw-r--r--releaser/releasenotes_writer.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/releaser/releasenotes_writer.go b/releaser/releasenotes_writer.go
index ff8d00a6c..175c342e2 100644
--- a/releaser/releasenotes_writer.go
+++ b/releaser/releasenotes_writer.go
@@ -177,14 +177,14 @@ func writeReleaseNotes(version string, infosMain, infosDocs gitInfos, to io.Writ
}
func fetchThemeCount() (int, error) {
- resp, err := http.Get("https://raw.githubusercontent.com/gohugoio/hugoThemes/master/.gitmodules")
+ resp, err := http.Get("https://raw.githubusercontent.com/gohugoio/hugoThemesSiteBuilder/main/themes.txt")
if err != nil {
return 0, err
}
defer resp.Body.Close()
b, _ := ioutil.ReadAll(resp.Body)
- return bytes.Count(b, []byte("submodule")), nil
+ return bytes.Count(b, []byte("\n")) - bytes.Count(b, []byte("#")), nil
}
func writeReleaseNotesToTmpFile(version string, infosMain, infosDocs gitInfos) (string, error) {