From 1f53c448e607c7f0384321b623e378d1a75cdb89 Mon Sep 17 00:00:00 2001 From: hbrain Date: Mon, 1 Jun 2026 08:50:09 +0200 Subject: [PATCH] Adjust mobile index ordering and update push notification message defaults --- index.php | 11 +++++++++-- lib/send_push.php | 2 +- sw.js | 6 +++--- 3 files changed, 13 insertions(+), 6 deletions(-) diff --git a/index.php b/index.php index a801c81..3cf5172 100644 --- a/index.php +++ b/index.php @@ -257,12 +257,20 @@ $headerTitles = [ 'Many Voices of Life', 'Many Views of Life', 'Modern Vagabond Log', + 'Motorcycle Wanderlust Log', + 'Mapped Wanderings Log', + 'Miles Beyond Reason', + 'Miles Beyond Reality', 'Motion, Velocity & Lunacy', + 'Miles, Wind & Luck', 'Maps, Villages & Legends', + 'Multi-Vision Log', + 'Multi-Vista Log', 'Mutable View Log', 'Mistakes, Victories & Lessons', 'Mostly Verified Legends', 'Mostly Vague Logistics', + 'Marginally Viable Leadership', 'Mileage Versus Luck', 'Mechanical Violence Log', 'Moderately Violent Leisure', @@ -303,7 +311,6 @@ $siteHeaderTitle = $headerTitles[array_rand($headerTitles)]; .meta a:hover{text-decoration:underline} @media (max-width:900px){ .video-row-head-mobile{display:block;grid-column:1 / -1;margin:0 0 .05rem} - .video-row-head-mobile .meta{display:none} .video-row-head-mobile .description-teaser{margin:.25rem 0 .3rem} #videos .video-wrapper{grid-column:1 / -1} #videos .video-info{grid-column:1 / -1} @@ -349,11 +356,11 @@ $siteHeaderTitle = $headerTitles[array_rand($headerTitles)];

-

+

diff --git a/lib/send_push.php b/lib/send_push.php index 6d9fbc9..60bd3df 100644 --- a/lib/send_push.php +++ b/lib/send_push.php @@ -175,7 +175,7 @@ function try_send_show_notification($articleRefOrJob, $jobdir, $mvlog_root = nul $payload = json_encode([ 'title' => $articleTitle, - 'body' => 'New MVLog article is now visible', + 'body' => 'New aticle @ MVL!', 'url' => $filterUrl, 'tag' => "mvlog-show-{$identity}", ], JSON_UNESCAPED_UNICODE); diff --git a/sw.js b/sw.js index aff567f..a54a698 100644 --- a/sw.js +++ b/sw.js @@ -1,9 +1,9 @@ self.addEventListener('push', event => { let data = {}; - try { data = event.data ? event.data.json() : {}; } catch (e) { data = { title: 'MVLog', body: event.data ? event.data.text() : 'New video published' }; } - const title = data.title || 'MVLog'; + try { data = event.data ? event.data.json() : {}; } catch (e) { data = { title: 'MVL', body: event.data ? event.data.text() : 'New article @ MVL!' }; } + const title = data.title || 'MVL'; const options = { - body: data.body || 'New video published', + body: data.body || 'New article @ MVL!', icon: 'assets/img/moto_travel.png', badge: 'assets/img/moto_travel.png', data: { url: data.url || './' },