From a352d19d881474f53d01791be4febd305453a9d6 Mon Sep 17 00:00:00 2001 From: Digitalcraftsman Date: Wed, 21 Jul 2021 06:07:31 -0700 Subject: [PATCH] Fix theme count in release notes --- releaser/releasenotes_writer.go | 4 ++-- 1 file 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) {