mirror of
https://github.com/MrUnknownDE/unknownbin.git
synced 2026-05-04 05:16:07 +02:00
refactor: Improve SSR logic for homepage SEO
This commit is contained in:
+5
-12
@@ -2,17 +2,10 @@
|
||||
<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.">
|
||||
<% } %>
|
||||
<title><%= title %></title>
|
||||
<meta name="description" content="<%= description %>">
|
||||
<meta property="og:title" content="<%= title %>">
|
||||
<meta property="og:description" content="<%= description %>">
|
||||
<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"/>
|
||||
@@ -29,7 +22,7 @@
|
||||
<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>
|
||||
<pre id="code" style="display:none;" tabindex="0"><code <% if (content) { %>id="preloaded-data"<% } %>><% if (content) { %><%- content %><% } %></code></pre>
|
||||
<textarea spellcheck="false" style="display:none;"></textarea>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user