parent
776bf41123
commit
97d11995c5
|
@ -13,6 +13,7 @@ a section
|
|||
- Add an id (`zola-continue-reading`) to the paragraph generated after a summary
|
||||
- Add Dracula syntax highlighting theme
|
||||
- Fix using inline styles in headers
|
||||
- Fix sections with render=false being shown in sitemap
|
||||
|
||||
|
||||
## 0.5.1 (2018-12-14)
|
||||
|
|
|
@ -797,6 +797,7 @@ impl Site {
|
|||
.read().unwrap()
|
||||
.sections_values()
|
||||
.iter()
|
||||
.filter(|s| s.meta.render)
|
||||
.map(|s| SitemapEntry::new(s.permalink.clone(), None))
|
||||
.collect::<Vec<_>>();
|
||||
for section in
|
||||
|
|
|
@ -175,6 +175,8 @@ fn can_build_site_without_live_reload() {
|
|||
));
|
||||
// Drafts are not in the sitemap
|
||||
assert!(!file_contains!(public, "sitemap.xml", "draft"));
|
||||
// render: false sections are not in the sitemap either
|
||||
assert!(!file_contains!(public, "sitemap.xml", "posts/2018/</loc>"));
|
||||
|
||||
// robots.txt has been rendered from the template
|
||||
assert!(file_contains!(public, "robots.txt", "User-agent: zola"));
|
||||
|
|
Loading…
Reference in New Issue