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="assets/meowbalt/error.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>
|
||||
<body id="cobalt-body" ${platform === "d" ? 'class="desktop"' : ''}>
|
||||
<noscript>
|
||||
|
|
Loading…
Reference in a new issue