- Remove Matomo analytics code

- Add noindex tags on some pages
 - Bump version
 - Move Liwan analytics code from app.html to +layout.svelte
This commit is contained in:
Fred Boniface 2025-03-06 14:50:11 +00:00
parent ee6e81de62
commit 059eae3784
19 changed files with 63 additions and 19 deletions

View File

@ -2,22 +2,6 @@
<html lang="en">
<head>
<meta charset="utf-8" />
<!-- Matomo -->
<script>
var _paq = window._paq = window._paq || [];
/* tracker methods like "setCustomDimension" should be called before "trackPageView" */
_paq.push(['trackPageView']);
_paq.push(['enableLinkTracking']);
(function() {
var u="https://owa.fjla.uk/";
_paq.push(['setTrackerUrl', u+'matomo.php']);
_paq.push(['setSiteId', '1']);
var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
g.async=true; g.src=u+'matomo.js'; s.parentNode.insertBefore(g,s);
})();
</script>
<!-- End Matomo Code -->
<script type="module" data-entity="owlboard-frontend" src="https://liwan.fjla.uk/script.js"></script>
%sveltekit.head%
</head>
<body data-sveltekit-preload-data="hover">

View File

@ -1,2 +1,2 @@
export const version: string = "2025.03.3";
export const version: string = "2025.03.4";
export const versionTag: string = "";

View File

@ -5,6 +5,10 @@
const title = "OwlBoard - Error";
</script>
<svelte:head>
<meta name="robots" content="noindex">
</svelte:head>
<Header {title} />
<h1>{$page.status}: {$page?.error?.message}</h1>

View File

@ -16,7 +16,8 @@
Check out the source code on Gitea (https://git.fjla.net/OwlBoard)
It's easier to read there
-->
<!-- Liwan Analytics -->
<script type="module" data-entity="owlboard-frontend" src="https://liwan.fjla.uk/script.js"></script>
<meta name="application-name" content="OwlBoard" />
<meta name="author" content="Frederick Boniface" />
<meta

View File

@ -5,6 +5,10 @@
const title = "404 - Not Found";
</script>
<svelte:head>
<meta name="robots" content="noindex">
</svelte:head>
<Header {title} />
<h1 class="heading">There's no light at the end of this tunnel</h1>
<p>The page you were looking for wasn't found</p>

View File

@ -5,6 +5,10 @@
const title = "50x - Server Error";
</script>
<svelte:head>
<meta name="robots" content="noindex">
</svelte:head>
<Header {title} />
<h1 class="heading">This page has been delayed by more servers than usual needing repairs at the same time</h1>
<p>There was an error with the server, please try again later</p>

View File

@ -32,6 +32,10 @@
});
</script>
<svelte:head>
<meta name="robots" content="noindex">
</svelte:head>
<Header {title} />
{#if !blockLoading}

View File

@ -2,6 +2,9 @@
import LargeLogo from "$lib/images/large-logo.svelte";
</script>
<svelte:head>
<meta name="robots" content="noindex">
</svelte:head>
<LargeLogo />
<h1>
OwlBoard is down for maintenance

View File

@ -29,6 +29,10 @@
];
</script>
<svelte:head>
<meta name="robots" content="noindex">
</svelte:head>
<Header {title} />
{#each links as item}

View File

@ -8,7 +8,7 @@
<Header {title} />
<LargeLogo />
<p class="neg">&copy; 2022-2023 Frederick Boniface</p>
<p class="neg">&copy; 2022-2025 Frederick Boniface</p>
<p>OwlBoard was created by train crew for train crew.</p>
<p>I developed OwlBoard in 2022 with the aim of providing fast and easy access to the information we need on a daily basis.</p>
<p>Data is sourced from National Rail Enquiries, the OwlBoard Project, and Network Rail.</p>

View File

@ -35,6 +35,10 @@
});
</script>
<svelte:head>
<meta name="robots" content="noindex">
</svelte:head>
<Header {title} />
<p>OwlBoard stores as little data about you as possible to offer the service.</p>

View File

@ -3,6 +3,10 @@
import Nav from "$lib/navigation/nav.svelte";
</script>
<svelte:head>
<meta name="robots" content="noindex">
</svelte:head>
<Header title={"Help"} />
<Nav />
<br /><br />

View File

@ -4,6 +4,10 @@
const title = "Privacy Policy";
</script>
<svelte:head>
<meta name="robots" content="noindex">
</svelte:head>
<Header {title} />
<div>
<p>

View File

@ -45,6 +45,10 @@
}
</script>
<svelte:head>
<meta name="robots" content="noindex">
</svelte:head>
<Header {title} />
{#if state}

View File

@ -76,6 +76,10 @@
}
</script>
<svelte:head>
<meta name="robots" content="noindex">
</svelte:head>
<Header {title} />
{#if isLoading}

View File

@ -17,6 +17,10 @@
}
</script>
<svelte:head>
<meta name="robots" content="noindex">
</svelte:head>
<Header {title} />
<QlSet />

View File

@ -43,6 +43,10 @@
}
</script>
<svelte:head>
<meta name="robots" content="noindex">
</svelte:head>
<Header {title} />
{#await getData()}

View File

@ -17,6 +17,10 @@
}
</script>
<svelte:head>
<meta name="robots" content="noindex">
</svelte:head>
<Header {title} />
<LargeLogo />

View File

@ -113,6 +113,10 @@
}
</script>
<svelte:head>
<meta name="robots" content="noindex">
</svelte:head>
<Header {title} />
<TimeBar updatedTime={undefined} />
<div id="dateSelector">