Skip to content

Commit

Permalink
fix image preview
Browse files Browse the repository at this point in the history
  • Loading branch information
eerussianguy committed Oct 4, 2024
1 parent 03a6bd7 commit 4dc90c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion assets/templates/default.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<meta property="og:url" content="https://terrafirmacraft.github.io/Field-Guide" />
<meta property="og:title" content="{long_title}" />
<meta property="og:description" content="{short_description}" />
<meta property="og:image" content="{preview_image}" />
<meta property="og:image" content="https://terrafirmacraft.github.io/Field-Guide/_images/{preview_image}".replace('../../_images/', '') />

<title>{long_title}</title>

Expand Down
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@ def build_book_html(context: Context):
# Main Page
util.write_html(context.output_dir, 'index.html', html=TEMPLATE.format(
title=context.translate(I18n.TITLE),
long_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(),
text_index=context.translate(I18n.INDEX),
Expand Down

0 comments on commit 4dc90c0

Please sign in to comment.