summaryrefslogtreecommitdiff
path: root/src/components/Nav.astro
diff options
context:
space:
mode:
authorseth <[email protected]>2024-02-13 01:46:59 -0500
committerseth <[email protected]>2024-02-13 01:46:59 -0500
commit09ee595618ad8c2fc6816e4c2ca21991a5ddeae3 (patch)
treefbd0ce5aee443b5b3054fad8685f4026604c513d /src/components/Nav.astro
parenta48c12b23ee697f86f951c930f78b2c6647b9c7a (diff)
use MINIFLUX_URL if present
Diffstat (limited to 'src/components/Nav.astro')
-rw-r--r--src/components/Nav.astro4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/components/Nav.astro b/src/components/Nav.astro
index 378c804..f427548 100644
--- a/src/components/Nav.astro
+++ b/src/components/Nav.astro
@@ -6,11 +6,13 @@ interface NavLink {
url: string;
}
+const minifluxUrl = process.env.MINIFLUX_URL || `https://miniflux.${Astro.url.hostname || config.site}`;
+
const links: NavLink[] = [
{ name: "home", url: "/" },
{
name: "miniflux",
- url: `https://miniflux.${Astro.url.hostname || config.site}`,
+ url: minifluxUrl,
},
{
name: "github",