add gallery imtags navigation

This commit is contained in:
Matthieu Bessat 2022-09-29 00:29:47 +02:00
parent 325875a5c7
commit b5785c8218
29 changed files with 92 additions and 84 deletions

View file

@ -15,12 +15,11 @@ for dir in images_dirs:
# change tags to image-tags
path = CONTENT_DIR + dir + '/index.md'
print(path)
index_file = open(path, 'w+')
content = index_file.read()
print(content)
content = content.replace('tags:', 'image-tags:')
print(content)
# index_file = open(path, 'w+')
# content = index_file.read()
# print(content)
# content = content.replace('tags:', 'image-tags:')
# print(content)
break
index_file.write(content)
index_file.close()