// Copyright 2016 The Hugo Authors. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
packagehugolib
import(
"fmt"
)
// TODO(bep) np pages names
// TODO(bep) np this is a somewhat breaking change and should be doc. + release notes: See AllPages vs. "this language only". Looks like it is like this alread, check.
typePageCollectionsstruct{
// Includes only pages of NodePage type, and only pages in the current language.
PagesPages
// Includes all pages in all languages, including the current one.
// Only pages of NodePage type.
AllPagesPages
// Includes pages of all types, but only pages in the current language.
NodesPages
// Includes all pages in all languages, including the current one.
// Includes pages of all types.
AllNodesPages
// A convenience cache for the traditional node types, taxonomies, home page etc.
// This is for the current language only.
indexNodesPages
// Includes absolute all pages (of all types), including drafts etc.
rawAllPagesPages
}
func(c*PageCollections)refreshPageCaches(){
// All pages are stored in AllNodes and Nodes. Filter from those.