diff options
author | Digitalcraftsman <[email protected]> | 2021-07-21 06:07:31 -0700 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2021-07-21 16:35:38 +0200 |
commit | a352d19d881474f53d01791be4febd305453a9d6 (patch) | |
tree | 39ff86799bc57fe0b44dc92441378881c6cf0c10 /releaser | |
parent | 11bb67dcfd323e47a4e6cb31e054bb0ade13c9b4 (diff) | |
download | hugo-a352d19d881474f53d01791be4febd305453a9d6.tar.gz hugo-a352d19d881474f53d01791be4febd305453a9d6.zip |
Fix theme count in release notes
Diffstat (limited to 'releaser')
-rw-r--r-- | releaser/releasenotes_writer.go | 4 |
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) { |