mirror of
https://github.com/MrUnknownDE/unknownbin.git
synced 2026-04-19 06:13:44 +02:00
add dynamic seo settings
This commit is contained in:
37
views/index.ejs
Normal file
37
views/index.ejs
Normal file
@@ -0,0 +1,37 @@
|
||||
// views/index.ejs
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<% if (paste) { %>
|
||||
<title><%= paste.title %></title>
|
||||
<meta name="description" content="<%= paste.description %>">
|
||||
<meta property="og:title" content="<%= paste.title %>">
|
||||
<meta property="og:description" content="<%= paste.description %>">
|
||||
<% } else { %>
|
||||
<title>unknownBIN - A Secure Pastebin</title>
|
||||
<meta name="description" content="unknownBIN is a secure and modern open-source Pastebin software written in Node.js.">
|
||||
<meta property="og:title" content="unknownBIN - A Secure Pastebin">
|
||||
<meta property="og:description" content="unknownBIN is a secure and modern open-source Pastebin software written in Node.js.">
|
||||
<% } %>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
||||
<link rel="stylesheet" type="text/css" href="/application.min.css"/>
|
||||
<link rel="stylesheet" type="text/css" href="/highlight.min.css"/>
|
||||
<link rel="shortcut icon" href="/favicon.png">
|
||||
<script src="/jquery.min.js"></script>
|
||||
<script src="/highlight.min.js"></script>
|
||||
<script src="/application.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="tools">
|
||||
<div class="save function" title="Save [Ctrl + S]">Save</div>
|
||||
<div class="new function" title="New [Ctrl + Space]">New</div>
|
||||
<div class="duplicate function" title="Duplicate [Ctrl + D]">Duplicate</div>
|
||||
<div class="raw function" title="Raw [Ctrl + Shift + R]">Raw</div>
|
||||
</div>
|
||||
<div id="content">
|
||||
<pre id="code" style="display:none;" tabindex="0"><code <% if (paste) { %>id="preloaded-data"<% } %>><% if (paste) { %><%- paste.data %><% } %></code></pre>
|
||||
<textarea spellcheck="false" style="display:none;"></textarea>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user