Skip to content

Commit

Permalink
index meta tags
Browse files Browse the repository at this point in the history
  • Loading branch information
Kathund committed Feb 14, 2024
1 parent 71c2f02 commit 150e788
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .vscode/extensions.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@
"esbenp.prettier-vscode",
"j69.ejs-beautify"
]
}
}
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { errorMessage, otherMessage, warnMessage } from './src/logger';
import { PORT, url, key, allowConfigGen } from './config.json';
import express, { Request, Response } from 'express';
import { loadEndpoints } from './src/functions';
import { existsSync, mkdirSync } from 'fs';
import fileUpload from 'express-fileupload';
import express, { Request, Response } from 'express';

if (!existsSync('./src/files')) {
mkdirSync('./src/files');
Expand Down
2 changes: 1 addition & 1 deletion src/views/pages/badName.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="../files/favicon.ico">
<link rel="stylesheet" href="../css/index.css">
<meta name="robots" content="noindex">
<meta name="robots" content="noindex,nofollow">
<title>ShareX-API | Bad Name</title>
<meta charset="UTF-8">
</head>
Expand Down
2 changes: 1 addition & 1 deletion src/views/pages/file.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<meta name="theme-color" content="#000000" />
<meta property="og:description" content="" />
<meta property="og:site_name" content="">
<meta name="robots" content="noindex">
<meta name="robots" content="noindex,nofollow">
<meta charset="UTF-8">
<% if (img.endsWith('.mp4')) { %>
<meta name="og:video:secure_url" content="<%= img %>">
Expand Down
10 changes: 9 additions & 1 deletion src/views/pages/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,18 @@
<html lang="en">

<head>
<meta property="og:description" content="ShareX-API | Made By Kathund - Open source and free to use at https://github.com/Kathund/ShareX-API" />
<meta name="description" content="ShareX-API | Made By Kathund - Open source and free to use at https://github.com/Kathund/ShareX-API" />
<meta property="og:url" content="https://github.com/Kathund/ShareX-API" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://github.com/Kathund/ShareX-AP" />
<link rel="icon" type="image/x-icon" href="../files/favicon.ico">
<meta name="twitter:card" content="summary_large_image" />
<meta property="og:title" content="ShareX-API | Home" />
<meta property="og:site_name" content="ShareX-API" />
<link rel="stylesheet" href="../css/index.css">
<meta name="robots" content="noindex">
<meta name="robots" content="noindex,nofollow">
<meta name="theme-color" content="#52A396" />
<title>ShareX-API | Home</title>
<meta charset="UTF-8">
</head>
Expand Down
2 changes: 1 addition & 1 deletion src/views/pages/missingFile.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<link rel="icon" type="image/x-icon" href="../files/favicon.ico">
<link rel="stylesheet" href="../css/index.css">
<title>ShareX-API | Missing File</title>
<meta name="robots" content="noindex">
<meta name="robots" content="noindex,nofollow">
<meta charset="UTF-8">
</head>

Expand Down

0 comments on commit 150e788

Please sign in to comment.