.Site.Recent deprecated or removed?

The docs currently have:

.Site.Pages Array of all content ordered by Date, newest first. Replaces the now-deprecated .Site.Recent starting v0.13. This array contains only the pages in the current language.

Trying to build an ancient site with Hugo 0.20, throws an error on that variable:

Started building sites ...
ERROR 2017/03/19 16:31:02 Error while rendering "page ": template: theme/index.html:24:24: executing "theme/index.html" at <.Site.Recent>: can't evaluate field Recent in type *hugolib.SiteInfo

Opened issue https://github.com/spf13/hugo/issues/3201

Yes…

Done:

https://github.com/rdwatters/hugo-docs-concept/issues/46

And done:

https://hugodocs.info/variables/site/#site-variables-list

1 Like