aboutsummaryrefslogtreecommitdiff
path: root/resources/views
diff options
context:
space:
mode:
authorFrankie B <git@diskfloppy.me>2024-06-19 15:33:11 +0100
committerFrankie B <git@diskfloppy.me>2024-06-19 15:33:11 +0100
commit8635a5ba263eed65c20f9e4230765023ee098401 (patch)
tree48d20d28d317c7ab6453e940eca7584851f9e40b /resources/views
parent56db90d3a3d468ffe8b361715b66b1d8ada93fce (diff)
Display whatever domain the site is being accessed from
Diffstat (limited to 'resources/views')
-rw-r--r--resources/views/components/layout.blade.php4
-rw-r--r--resources/views/components/navbar.blade.php2
2 files changed, 3 insertions, 3 deletions
diff --git a/resources/views/components/layout.blade.php b/resources/views/components/layout.blade.php
index 2f79318..1c0e14d 100644
--- a/resources/views/components/layout.blade.php
+++ b/resources/views/components/layout.blade.php
@@ -17,8 +17,8 @@
{!! (intval(date('n')) == 12) ? '<script src="/js/christmas/snow.js"></script>' : '' !!}
<!-- Page-specific -->
- <title>{{ $title ?? 'Unknown' }} - diskfloppy.me</title>
- <meta property="og:title" content="diskfloppy.me | {{ $title }}">
+ <title>{{ $title ?? 'Unknown' }} - {{ str_replace("www.", "", Request::getHost()) }}</title>
+ <meta property="og:title" content="{{ str_replace("www.", "", Request::getHost()) }} | {{ $title }}">
<meta property="og:image" content="/favicon-128x128.png">
</head>
<body onload="setSchemeSelector()">
diff --git a/resources/views/components/navbar.blade.php b/resources/views/components/navbar.blade.php
index 80cd2b0..475ebca 100644
--- a/resources/views/components/navbar.blade.php
+++ b/resources/views/components/navbar.blade.php
@@ -1,5 +1,5 @@
<nav>
- <h1>diskfloppy.me | <strong>{{ $title }}</strong></h1>
+ <h1>{{ str_replace("www.", "", Request::getHost()) }} | <strong>{{ $title }}</strong></h1>
<div class="nav-wrapper">
<div>
<a href="/" title="Home"><img class="pixel" src="/images/icons/nav/home2.png" alt="Home" width="32" height="32"></a>