This website works better with JavaScript.
git.jstrong.dev
Home
Explore
Help
Sign In
jstrong
/
zola
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Clippy
index-subcmd
Vincent Prouillet
7 years ago
parent
18ccb4b79e
commit
939b699518
2 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
src/site.rs
+1
-1
tests/page.rs
+ 1
- 1
src/site.rs
View File
@@ -558,7 +558,7 @@ impl Site {
let pages = self.pages.values()
.filter(|p| p.meta.date.is_some())
.take(15) // limit to the last 15 elements
.
map(|p| p.
clone()
)
.clone
d
()
.collect::<Vec<Page>>();
// Don't generate a RSS feed if none of the pages has a date
+ 1
- 1
tests/page.rs
View File
@@ -266,7 +266,7 @@ fn test_page_with_assets_gets_right_parent_path() {
File::create(nested_path.join("fail.png")).unwrap();
let res = Page::parse(
&
nested_path.join("index.md").as_path(),
nested_path.join("index.md").as_path(),
"+++\nurl=\"hey\"+++\n",
&Config::default()
);
Write
Preview
Loading…
Cancel
Save