Display whatever domain the site is being accessed from

This commit is contained in:
floppydiskette 2024-06-19 15:33:11 +01:00
parent 56db90d3a3
commit 8635a5ba26
Signed by: fwoppydwisk
SSH key fingerprint: SHA256:Hqn452XQ1ETzUt/FthJu6+OFkS4NBxCv5VQSEvuk7CE
2 changed files with 3 additions and 3 deletions

View file

@ -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()">

View file

@ -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>