Skip to content

Commit

Permalink
fixed tags in draft not found error (#753)
Browse files Browse the repository at this point in the history
  • Loading branch information
lisongmin authored and Keats committed Jul 19, 2019
1 parent ad6b713 commit d016764
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions components/library/src/taxonomies/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -193,11 +193,6 @@ pub fn find_taxonomies(config: &Config, library: &Library) -> Result<Vec<Taxonom
let mut all_taxonomies = HashMap::new();

for (key, page) in library.pages() {
// Draft are not part of taxonomies
if page.is_draft() {
continue;
}

for (name, val) in &page.meta.taxonomies {
if taxonomies_def.contains_key(name) {
if taxonomies_def[name].lang != page.lang {
Expand Down

0 comments on commit d016764

Please sign in to comment.