fixed tags in draft not found error (#753)

This commit is contained in:
lsm 2019-07-19 15:45:15 +08:00 committed by Vincent Prouillet
parent ad6b713759
commit d0167647a8

View file

@ -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 {