diff options
Diffstat (limited to 'src/pyssg/md/parser.py')
-rw-r--r-- | src/pyssg/md/parser.py | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/src/pyssg/md/parser.py b/src/pyssg/md/parser.py index 34a8922..32f86d2 100644 --- a/src/pyssg/md/parser.py +++ b/src/pyssg/md/parser.py @@ -109,15 +109,12 @@ class MDParser: page.parse_metadata() self.all_files.append(page) - if self.dir_config['tags']: - if entry[4] is not None: - if set(page.tags) != set(entry[4]): - self.db.update_tags(f, page.tags) - - for t in page.tags: - if t not in self.all_tags: - self.all_tags.append(t) - log.debug('added tag "%s" to all tags', t) + # always the most up to date tags + self.db.update_tags(f, page.tags) + for t in page.tags: + if t not in self.all_tags: + self.all_tags.append(t) + log.debug('added tag "%s" to all tags', t) self.all_files.sort(reverse=True) self.all_tags.sort() |