mirror of
https://github.com/wukko/cobalt.git
synced 2024-11-17 22:00:00 +00:00
page: add plausible script enabled by env variable
This commit is contained in:
parent
1fdc25e2ad
commit
3c18b76d3c
1 changed files with 8 additions and 0 deletions
|
@ -74,6 +74,14 @@ export default function(obj) {
|
||||||
<link rel="preload" href="fonts/notosansmono.css" as="style">
|
<link rel="preload" href="fonts/notosansmono.css" as="style">
|
||||||
<link rel="preload" href="assets/meowbalt/error.png" as="image">
|
<link rel="preload" href="assets/meowbalt/error.png" as="image">
|
||||||
<link rel="preload" href="assets/meowbalt/question.png" as="image">
|
<link rel="preload" href="assets/meowbalt/question.png" as="image">
|
||||||
|
|
||||||
|
${process.env.PLAUSIBLE_HOSTNAME ?
|
||||||
|
`<script
|
||||||
|
defer
|
||||||
|
data-domain="${new URL(process.env.WEB_URL).hostname}"
|
||||||
|
src="https://${process.env.PLAUSIBLE_HOSTNAME}/js/script.js"
|
||||||
|
></script>`
|
||||||
|
: ''}
|
||||||
</head>
|
</head>
|
||||||
<body id="cobalt-body" ${platform === "d" ? 'class="desktop"' : ''}>
|
<body id="cobalt-body" ${platform === "d" ? 'class="desktop"' : ''}>
|
||||||
<noscript>
|
<noscript>
|
||||||
|
|
Loading…
Reference in a new issue