Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix theme count in release notes
- Loading branch information
Showing
with
2 additions
and
2 deletions.
-
+2
−2
releaser/releasenotes_writer.go
There are no files selected for viewing
|
|
@@ -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) { |
|
|
|