-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.Site.LastChange should be time of newest content #2909
Comments
Also seen here: musec/hugo-memorial-theme@f5c1728 |
moorereason
added a commit
to moorereason/hugo
that referenced
this issue
Feb 18, 2017
If weights are added to the content front matter, the default sort order can't be relied upon to set `.Site.LastChange`. Fixes gohugoio#2909
bep
added a commit
to bep/hugo
that referenced
this issue
Feb 19, 2017
This commit makes sure that the `.Site.LastChange` is fetched from the latest page modification date. Previously, this value was fetched from the last page in the default page sort, which may not be the last by date if weight is set. Fixes gohugoio#2909 Closes gohugoio#2910
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Currently,
.Site.LastChange
is set to the first page in the default sort order (hugolib/site.go#L135), which may not be the most recent content if weights were added to the front matter.See https://discuss.gohugo.io/t/4992
The text was updated successfully, but these errors were encountered: