diff --git a/index.html b/index.html index 940eb0f..85efcd3 100644 --- a/index.html +++ b/index.html @@ -64,7 +64,7 @@ display: flex; flex-wrap: wrap; gap: 20px; - justify-content: center; + justify-content: flex-start; } .gallery-item { position: relative; @@ -120,6 +120,9 @@ width: 100%; bottom: 0; } + footer a { + color: #66ccff; + } @@ -140,277 +159,376 @@

一休github简易图床系统

分类
-

youtube 导出该分类图片信息

diff --git a/v2.py b/v2.py index 2255a9c..27b7e43 100644 --- a/v2.py +++ b/v2.py @@ -19,7 +19,7 @@ def generate_index_html(root_dir): if not root.startswith('./.git'): rel_dir = os.path.relpath(root, root_dir) for file in files: - if file.lower().endswith(('.png','.svg','ico','.webp', '.jpg', '.jpeg', '.gif', '.bmp', '.tiff')): + if file.lower().endswith(('.png', '.svg', 'ico', '.webp', '.jpg', '.jpeg', '.gif', '.bmp', '.tiff')): if rel_dir not in image_files: image_files[rel_dir] = [] image_files[rel_dir].append(os.path.join(root, file)) @@ -109,7 +109,7 @@ def generate_html_content(image_files): display: flex; flex-wrap: wrap; gap: 20px; - justify-content: center; + justify-content: flex-start; } .gallery-item { position: relative; @@ -165,6 +165,9 @@ def generate_html_content(image_files): width: 100%; bottom: 0; } + footer a { + color: #66ccff; + } @@ -190,7 +209,7 @@ def generate_html_content(image_files): # 生成导航链接 for category in image_files: html_content += f'{category}' - html_content += '导出所有图片信息' + html_content += '导出所有图片信息' html_content += ''' @@ -199,11 +218,11 @@ def generate_html_content(image_files): # 生成每个分类的图片展示 for category, files in image_files.items(): - html_content += f'

{category} 导出该分类图片信息