diff --git a/cmd/hugothemesitebuilder/build/config.json b/cmd/hugothemesitebuilder/build/config.json index e68eee5..19cd1f0 100644 --- a/cmd/hugothemesitebuilder/build/config.json +++ b/cmd/hugothemesitebuilder/build/config.json @@ -1624,11 +1624,6 @@ "noMounts": true, "path": "github.com/themefisher/parsa-hugo" }, - { - "ignoreImports": true, - "noMounts": true, - "path": "github.com/themefisher/parsa-hugo-personal-blog-theme" - }, { "ignoreImports": true, "noMounts": true, diff --git a/pkg/buildcmd/build.go b/pkg/buildcmd/build.go index 1c47600..713d577 100644 --- a/pkg/buildcmd/build.go +++ b/pkg/buildcmd/build.go @@ -293,11 +293,11 @@ func (t *theme) calculateWeight(maxStars int) { boostRecent(time.Since(t.m.Time), (3 * d30), 20) } - // Boost themes created the last month. + // Pull themes created the last 3 months to the top. // Note that we currently only have that information for themes // hosted on GitHub. if !t.ghRepo.IsZero() { - boostRecent(time.Since(t.ghRepo.CreatedAt), (1 * d30), 50) + boostRecent(time.Since(t.ghRepo.CreatedAt), (3 * d30), 50000) } // Boost themes with a Hugo version indicator set that covers. @@ -308,6 +308,10 @@ func (t *theme) calculateWeight(maxStars int) { weight -= boost }*/ + if t.weight < 0 { + t.weight = 1 + } + } func (t *theme) toFrontMatter() map[string]interface{} {