From fd8624927eabf930dc6aea60ae9bde4608c9ce21 Mon Sep 17 00:00:00 2001 From: eerussianguy Date: Fri, 4 Oct 2024 14:50:51 -0400 Subject: [PATCH] wondering why this behavior is different on the web than on my machine --- src/main.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.py b/src/main.py index c0677b8a87..acf7cdbce5 100644 --- a/src/main.py +++ b/src/main.py @@ -409,7 +409,7 @@ def build_book_html(context: Context): title=context.translate(I18n.TITLE), long_title=context.translate(I18n.TITLE) + " | " + versions.MC_VERSION, short_description=context.translate(I18n.HOME), - preview_image=get_splash_location().replace('..\\..\\_images\\', ''), + preview_image=get_splash_location().replace('..\\..\\_images\\', '') + '.png', text_index=context.translate(I18n.INDEX), text_contents=context.translate(I18n.CONTENTS), text_version=context.translate(I18n.VERSION), @@ -463,7 +463,7 @@ def build_book_html(context: Context): title=context.translate(I18n.TITLE), long_title=cat.name + " | " + context.translate(I18n.SHORT_TITLE), short_description=cat.name, - preview_image=get_splash_location().replace('..\\..\\_images\\', ''), + preview_image=get_splash_location().replace('..\\..\\_images\\', '') + '.png', text_index=context.translate(I18n.INDEX), text_contents=context.translate(I18n.CONTENTS), text_version=context.translate(I18n.VERSION), @@ -522,7 +522,7 @@ def build_book_html(context: Context): title=context.translate(I18n.TITLE), long_title=entry.name + " | " + cat.name + " | " + context.translate(I18n.SHORT_TITLE), short_description=entry.name, - preview_image=entry.icon.replace('..\\..\\_images\\', ''), + preview_image=entry.icon.replace('..\\..\\_images\\', '').replace('../../_images/', ''), text_index=context.translate(I18n.INDEX), text_contents=context.translate(I18n.CONTENTS), text_version=context.translate(I18n.VERSION),