+# Add lower-case tags
+_new_dict = {}
+for (year, month, day), posts in blog_dict.items():
+ _new_dict[year, month, day] = _posts = []
+ for _file, _title, _lead, _tags in posts:
+ tags_lower = [tag.lower() for tag in _tags]
+ _posts.append((_file, _title, _lead, _tags, tags_lower))
+blog_dict = _new_dict
+
+
+def real_tag(tag):
+ ltag = tag.lower()