From 075d7f4309d3f274966d749ec18af71085ae0dd1 Mon Sep 17 00:00:00 2001 From: Xylight Date: Mon, 26 Feb 2024 17:12:03 -0800 Subject: [PATCH] fix: add and close #260 (meta tags) --- README.md | 1 + src/routes/post/[instance]/[id=integer]/+page.svelte | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/README.md b/README.md index c6801dee..422a745f 100644 --- a/README.md +++ b/README.md @@ -55,6 +55,7 @@ The following environment variables can be set to override the default settings: | Variable | Values | Default Value | | ------------------------------- | ------------------- | -------------------------------------- | | PUBLIC_INSTANCE_URL | URL | `lemmy.ml` | +| PUBLIC_FAVICON | URL | `/img/logo-background.svg | | PUBLIC_LOCK_TO_INSTANCE | `bool` | `true` if `PUBLIC_INSTANCE_URL` is set | | PUBLIC_SSR_ENABLED | `bool` | `false` | | PUBLIC_MIGRATE_COOKIE | `bool` | `false` | diff --git a/src/routes/post/[instance]/[id=integer]/+page.svelte b/src/routes/post/[instance]/[id=integer]/+page.svelte index 8cfdbb61..d0279c76 100644 --- a/src/routes/post/[instance]/[id=integer]/+page.svelte +++ b/src/routes/post/[instance]/[id=integer]/+page.svelte @@ -126,12 +126,18 @@ {post.post_view.post.name} + {#if isImage(post.post_view.post.url)} + + {:else if post.post_view.post.thumbnail_url} + + {/if} {#if post.post_view.post.body} + {/if}