mirror of
https://github.com/tiennm99/hugoThemesSiteBuilder.git
synced 2026-10-11 12:19:02 +00:00
all: Align description, behavior, and warnings for outdated themes
Closes #622
This commit is contained in:
1 parent
35ced09830
commit
c2bc3427ff
2 files changed
+3
-5
No files matched your search
@@ -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.
|
||||
|
||||
|
||||
@@ -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{
|
||||
|
||||
Reference in new issue
Block a user