This commit is contained in:
Erik 2022-03-24 01:28:57 +02:00
parent f3f2dfd381
commit 8384a57b6a
No known key found for this signature in database
GPG Key ID: FEFF4B220DDF5589
2 changed files with 7 additions and 4 deletions

View File

@ -5,10 +5,10 @@
<link rel="icon" href="%PUBLIC_URL%/favicon.ico" /> <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#ffafff" /> <meta name="theme-color" content="#ffafff" />
<meta <!-- <meta
name="description" name="description"
content="Navy's homepage 😎" content="Navy's homepage 😎"
/> /> -->
<!-- <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> --> <!-- <link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" /> -->
<!-- <!--
manifest.json provides metadata used when your web app is installed on a manifest.json provides metadata used when your web app is installed on a
@ -25,13 +25,15 @@
Learn how to configure a non-root public URL by running `npm run build`. Learn how to configure a non-root public URL by running `npm run build`.
--> -->
<title>Corgi Corner</title> <title>Corgi Corner</title>
<meta name="description" content="{{META_description}}" />
<meta name='author' content='{{META_author}}' /> <meta name='author' content='{{META_author}}' />
<meta property='og:type' content='video.other' />
<meta property='og:url' content='{{META_url}}' /> <meta property='og:url' content='{{META_url}}' />
<!-- <meta property='og:image' content={{META_thumbnail}} /> --> <!-- <meta property='og:image' content={{META_thumbnail}} /> -->
<meta property='og:video' content='{{META_url}}' /> <meta property='og:video' content='{{META_url}}' />
<meta property='og:video:url' content={{META_srcUrl}} /> <meta property='og:video:url' content={{META_srcUrl}} />
<meta property='og:video:type' content='video/mp4' /> <meta property='og:video:type' content='video/mp4' />
<meta property='og:type' content='video.other' />
</head> </head>
<body> <body>

View File

@ -49,7 +49,8 @@ class Home extends Endpoint {
console.log(this.index); console.log(this.index);
const html = this.index const html = this.index
// replace(`<title>Corgi Corner</title>`, clip.name). // .replace(`<title>Corgi Corner</title>`, clip.name)
.replace(/\{\{META_description\}\}/ug, 'A website I guess')
.replace(/\{\{META_author\}\}/ug, clip.uploader.tag) .replace(/\{\{META_author\}\}/ug, clip.uploader.tag)
.replace(/\{\{META_url\}\}/ug, clientUrl) .replace(/\{\{META_url\}\}/ug, clientUrl)
.replace(/\{\{META_thumbnail\}\}/ug, thumbnailUrl) .replace(/\{\{META_thumbnail\}\}/ug, thumbnailUrl)