Chunking the blog posts for the stream.
This commit is contained in:
@@ -71,4 +71,13 @@ impl Config {
|
||||
pub(crate) fn get_site_title(&self) -> Option<&str> {
|
||||
self.raw.site_title.as_deref()
|
||||
}
|
||||
|
||||
pub(crate) fn get_stream_entries_per_page(&self) -> usize {
|
||||
self.raw
|
||||
.stream
|
||||
.as_ref()
|
||||
.map(|stream| stream.entries_per_page)
|
||||
.flatten()
|
||||
.unwrap_or(5)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user