- 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"> <html lang="en">
<head> <head>
<meta charset="utf-8" /> <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% %sveltekit.head%
</head> </head>
<body data-sveltekit-preload-data="hover"> <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 = ""; export const versionTag: string = "";

View File

@ -5,6 +5,10 @@
const title = "OwlBoard - Error"; const title = "OwlBoard - Error";
</script> </script>
<svelte:head>
<meta name="robots" content="noindex">
</svelte:head>
<Header {title} /> <Header {title} />
<h1>{$page.status}: {$page?.error?.message}</h1> <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) Check out the source code on Gitea (https://git.fjla.net/OwlBoard)
It's easier to read there 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="application-name" content="OwlBoard" />
<meta name="author" content="Frederick Boniface" /> <meta name="author" content="Frederick Boniface" />
<meta <meta

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -8,7 +8,7 @@
<Header {title} /> <Header {title} />
<LargeLogo /> <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>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>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> <p>Data is sourced from National Rail Enquiries, the OwlBoard Project, and Network Rail.</p>

View File

@ -35,6 +35,10 @@
}); });
</script> </script>
<svelte:head>
<meta name="robots" content="noindex">
</svelte:head>
<Header {title} /> <Header {title} />
<p>OwlBoard stores as little data about you as possible to offer the service.</p> <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"; import Nav from "$lib/navigation/nav.svelte";
</script> </script>
<svelte:head>
<meta name="robots" content="noindex">
</svelte:head>
<Header title={"Help"} /> <Header title={"Help"} />
<Nav /> <Nav />
<br /><br /> <br /><br />

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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