diff options
author | Digitalcraftsman <digitalcraftsman@users.noreply.github.com> | 2021-07-21 16:07:31 +0300 |
---|---|---|
committer | Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com> | 2021-07-21 17:35:38 +0300 |
commit | a352d19d881474f53d01791be4febd305453a9d6 (patch) | |
tree | 39ff86799bc57fe0b44dc92441378881c6cf0c10 /releaser/releasenotes_writer.go | |
parent | 11bb67dcfd323e47a4e6cb31e054bb0ade13c9b4 (diff) |
Fix theme count in release notes
Diffstat (limited to 'releaser/releasenotes_writer.go')
-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) { |