add gallery imtags navigation
This commit is contained in:
parent
325875a5c7
commit
b5785c8218
29 changed files with 92 additions and 84 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue