From c2bc3427ffb53ce65a4eb22a9b4440348f2ff761 Mon Sep 17 00:00:00 2001 From: Joe Mooring Date: Sun, 28 Sep 2025 06:01:05 -0700 Subject: [PATCH] all: Align description, behavior, and warnings for outdated themes Closes #622 --- README.md | 4 +--- pkg/buildcmd/build.go | 4 ++-- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 977784c..67c5446 100644 --- a/README.md +++ b/README.md @@ -182,7 +182,7 @@ The Netlify deploy preview can fail for a variety of reasons. The following step # Outdated themes -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. +Themes are removed if they haven't been updated in the last 18 months. Even if your theme works now, we strongly recommend you periodically check its compatibility with the latest version of Hugo. # FAQ @@ -193,5 +193,3 @@ According to our current policy, themes that have not been updated within the la **Question:** Can I submit a theme with a repository hosted on git.sr.ht (or any other platform for that matter), given that themes.txt contains links to github.com and gitlab.com? **Answer:** Yes, it would be accepted if the repository hosted on git.sr.ht (or any other platform) is supported by Go Modules. To confirm the same, you can create a pull request and check if the build process succeeds. - - diff --git a/pkg/buildcmd/build.go b/pkg/buildcmd/build.go index 0a4246f..39aee7a 100644 --- a/pkg/buildcmd/build.go +++ b/pkg/buildcmd/build.go @@ -482,7 +482,7 @@ func (t *theme) checkLastMod() (warn warning, found bool) { if !lastMod.IsZero() { age := time.Since(lastMod) ageYears := age.Hours() / 24 / 365 - if ageYears > 3 { + if ageYears > 1 { warn = themeWarningOld found = true } @@ -510,7 +510,7 @@ var ( // Not updated for the last 2 years. themeWarningOld = warning{ level: errorLevelWarn, - message: "This theme has not been updated for more than 2 years.", + message: "This theme hasn't been updated in over a year.", } themeWarningBadURL = warning{