diff --git a/src/tag.rs b/src/tag.rs index a5c711e..acd4111 100644 --- a/src/tag.rs +++ b/src/tag.rs @@ -14,7 +14,7 @@ pub struct Tag { pub fn get_tags<'a>(posts: impl IntoIterator) -> HashMap { let mut tags: HashMap = HashMap::new(); - for post in posts.into_iter().filter(|p| p.is_published()) { + for post in posts.into_iter() { for key in &post.tags { if let Some(tag) = tags.get_mut(key) { tag.posts.push(post.slug.clone());