Skip to content

Commit

Permalink
chore: update criteria for outdated themes (#318)
Browse files Browse the repository at this point in the history
* chore: update criteria for outdated themes
* chore: update docs regarding outdated themes
Themes that are not modified for more than 3 years will be considered as outdated.
  • Loading branch information
hugo-sid committed Jul 25, 2023
1 parent bbf24c9 commit d377ef3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ In any other case, if a submission is found to be in violation of licence of the
Themes with READMEs set up as marketing campaigns for other products (e.g. paid version of a free theme) will not be accepted.


# Note on outdated themes
# Outdated themes

Themes that have not been updated in the past few years are removed as per the current policy. Even if your theme is fully functional, it is recommended that you periodically check and confirm its compatibility with the latest versions of Hugo.
According to our current policy, themes that have not been updated within the last 3 years are deemed outdated and are removed. Even if your theme is fully functional, it is recommended that you periodically check and confirm its compatibility with the latest version of Hugo.

# FAQ

Expand Down
2 changes: 1 addition & 1 deletion pkg/buildcmd/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ func (t *theme) checkLastMod() (warn warning, found bool) {
if !lastMod.IsZero() {
age := time.Since(lastMod)
ageYears := age.Hours() / 24 / 365
if ageYears > 2 {
if ageYears > 3 {
warn = themeWarningOld
found = true
}
Expand Down

0 comments on commit d377ef3

Please sign in to comment.