diff options
author | Bjørn Erik Pedersen <[email protected]> | 2024-06-08 11:52:22 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2024-06-23 11:25:47 +0200 |
commit | 6cd0784e447f18e009cbbf30de471e486f7cf356 (patch) | |
tree | 0684d05d7e487ebe93463636ed8b5a1bb78e4704 /hugolib/site_sections.go | |
parent | 8731d8822216dd3c7587769e3cf5d98690717b0c (diff) | |
download | hugo-6cd0784e447f18e009cbbf30de471e486f7cf356.tar.gz hugo-6cd0784e447f18e009cbbf30de471e486f7cf356.zip |
Implement defer
Closes #8086
Closes #12589
Diffstat (limited to 'hugolib/site_sections.go')
-rw-r--r-- | hugolib/site_sections.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/hugolib/site_sections.go b/hugolib/site_sections.go index 03d662b9f..385f3f291 100644 --- a/hugolib/site_sections.go +++ b/hugolib/site_sections.go @@ -19,12 +19,12 @@ import ( // Sections returns the top level sections. func (s *Site) Sections() page.Pages { - s.checkReady() + s.CheckReady() return s.Home().Sections() } // Home is a shortcut to the home page, equivalent to .Site.GetPage "home". func (s *Site) Home() page.Page { - s.checkReady() + s.CheckReady() return s.s.home } |