summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xbin/pyggle10
1 files changed, 10 insertions, 0 deletions
diff --git a/bin/pyggle b/bin/pyggle
index 81df0f1..0a88a4a 100755
--- a/bin/pyggle
+++ b/bin/pyggle
@@ -943,6 +943,16 @@ if __name__ == "__main__":
for thumbnail in thumbnails:
with open(f"{base_dir}/share/html_detail_start", "r") as f:
detail_html_start = f.read()
+ if args.cdn:
+ detail_html_start = detail_html_start.replace(
+ 'href=".data/css/', f'href="{args.cdn}/css/'
+ )
+ detail_html_start = detail_html_start.replace(
+ 'src=".data/js/', f'src="{args.cdn}/js/'
+ )
+ detail_html_start = detail_html_start.replace(
+ "path = '.data/css/'", f"path = '{args.cdn}/css/'"
+ )
with open(f"{base_dir}/share/html_detail_end", "r") as f:
detail_html_end = f.read()
for thumbnail in thumbnails: