From 800304910961639a10430ee7ea396b0050987cf2 Mon Sep 17 00:00:00 2001 From: Xylight Date: Sat, 24 Feb 2024 12:36:56 -0800 Subject: [PATCH] feat: add instance favicon, etc --- README.md | 7 ++----- src/routes/+layout.svelte | 10 ++++++++++ src/routes/+page.svelte | 4 ---- 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index a7fc6430..c6801dee 100644 --- a/README.md +++ b/README.md @@ -52,11 +52,9 @@ The most common settings you'll use are `PUBLIC_INSTANCE_URL`. Some selfhosters The following environment variables can be set to override the default settings: - | Variable | Values | Default Value | | ------------------------------- | ------------------- | -------------------------------------- | | PUBLIC_INSTANCE_URL | URL | `lemmy.ml` | -| PUBLIC_INTERNAL_INSTANCE | URL? | null | | PUBLIC_LOCK_TO_INSTANCE | `bool` | `true` if `PUBLIC_INSTANCE_URL` is set | | PUBLIC_SSR_ENABLED | `bool` | `false` | | PUBLIC_MIGRATE_COOKIE | `bool` | `false` | @@ -133,8 +131,7 @@ Want your instance added here? Make a GitHub issue or make a PR! (this is for ge [phtn.app](https://phtn.app) is the official instance and will get updates instantly. - -| Instance | Location | Contact | +| Instance | Location | Contact | | --------------------------------------------------------------------------------------- | ------------ | ------------------------------------------------------------------------------------- | | [phtn.app (Official)](https://phtn.app) | 🇺🇸 US West | [photon@xylight.dev](mailto:photon@xylight.dev) | | [ph.opnxng.com](https://ph.opnxng.com) | 🇸🇬 Singapore | [about.opnxng.com](https://about.opnxng.com) | @@ -142,7 +139,7 @@ Want your instance added here? Make a GitHub issue or make a PR! (this is for ge | [p.lemmy.ohaa.xyz](https://p.lemmy.ohaa.xyz) | 🇦🇹 Austria | (???) | | [~~photon.zhenyapav.com~~ (Has not updated since v1.9.2)](https://photon.zhenyapav.com) | 🇮🇸 Iceland | [zhenyapav@zhenyapav.com](mailto:zhenyapav@zhenyapav.com) | | [~~ph.buckodr.ink~~ (Has not updated since v1.21.1)](https://ph.buckodr.ink) | 🇺🇸 US East | [admin@buckodr.ink](mailto:admin@buckodr.ink) | -| [phtn.ngn.tf](https://phtn.ngn.tf) | 🇹🇷 Turkey | [services@ngn.tf](mailto:services@ngn.tf) +| [phtn.ngn.tf](https://phtn.ngn.tf) | 🇹🇷 Turkey | [services@ngn.tf](mailto:services@ngn.tf) | ## Donate diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index 87306b3b..dd666a1d 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -19,6 +19,7 @@ import SiteCard from '$lib/components/lemmy/SiteCard.svelte' import { site } from '$lib/lemmy.js' import ExpandableImage from '$lib/components/ui/ExpandableImage.svelte' + import { LINKED_INSTANCE_URL } from '$lib/instance' nProgress.configure({ minimum: 0.4, @@ -64,6 +65,15 @@ + {#if $site} + {$site.site_view.site.name} + {#if LINKED_INSTANCE_URL} + + + {:else} + + {/if} + {/if} {@html webManifest} diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index a78ca67e..85b1d7cd 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -19,10 +19,6 @@ let sidebar = false - - Photon - - About