MCPcopy Index your code
hub / github.com/writefreely/writefreely / PostsPerPage

Method PostsPerPage

collections.go:183–188  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

181 return cf.Format == "blog"
182}
183func (cf *CollectionFormat) PostsPerPage() int {
184 if cf.Format == "novel" {
185 return postsPerPage
186 }
187 return postsPerPage
188}
189
190// Valid returns whether or not a format value is valid.
191func (cf *CollectionFormat) Valid() bool {

Callers 6

handleViewCollectionFunction · 0.80
handleViewCollectionTagFunction · 0.80
handleViewCollectionLangFunction · 0.80
GetPostsMethod · 0.80
GetPostsTaggedMethod · 0.80
GetLangPostsMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected