forked from cadey/xesite
reduce feeds to 5 posts
Signed-off-by: Christine Dodrill <me@christine.website>
This commit is contained in:
parent
9dde6e89d2
commit
698d4cb3af
|
@ -87,7 +87,7 @@ pub async fn init(cfg: PathBuf) -> Result<State> {
|
||||||
everything.sort();
|
everything.sort();
|
||||||
everything.reverse();
|
everything.reverse();
|
||||||
|
|
||||||
let everything: Vec<Post> = everything.into_iter().take(20).collect();
|
let everything: Vec<Post> = everything.into_iter().take(5).collect();
|
||||||
|
|
||||||
let mut jfb = jsonfeed::Feed::builder()
|
let mut jfb = jsonfeed::Feed::builder()
|
||||||
.title("Christine Dodrill's Blog")
|
.title("Christine Dodrill's Blog")
|
||||||
|
|
Loading…
Reference in New Issue