Added robots.txt. Updated meta data (again again)

This commit is contained in:
Jay 2022-02-19 19:49:44 -06:00
parent a4a9ad11fa
commit 7412cab92f
5 changed files with 23 additions and 6 deletions

View File

@ -34,6 +34,7 @@ console.use('/messages', routes.PORTAL_MESSAGES);
console.use('/news', routes.PORTAL_NEWS);
console.use('/', routes.PORTAL_WEB);
console.use('/login', routes.WEB_LOGIN);
console.use('/robots.txt', routes.ROBOTS);
admin.use('/', routes.WEB_ADMIN);
admin.use('/v1/', routes.WEB_API);

View File

@ -10,4 +10,5 @@ module.exports = {
WEB_ADMIN: require('./admin/home'),
WEB_API: require('./admin/api'),
WEB_LOGIN: require('./web/login'),
ROBOTS: require('./web/robots'),
};

View File

@ -0,0 +1,11 @@
var express = require('express');
const path = require("path");
var router = express.Router();
router.get('/', function (req, res) {
res.set("Content-Type", "text/css");
res.sendFile('robots.txt', {root: path.join(__dirname, '../../../../webfiles/web')});
});
module.exports = router;

View File

@ -17,9 +17,9 @@
<meta itemprop="name" content="Juxtaposition - Post by <%= post.screen_name %>">
<meta itemprop="description" content="<%= community.name %> - <%= post.empathy_count%> Yeahs!">
<% if(post.screenshot !== '') { %>
<meta itemprop="image" content="https://juxt.pretendo.cc/screenshot/<%= post.id %>.png">
<meta itemprop="image" content="https://portal.cdn.pretendo.cc/screenshot/<%= post.id %>.png?asdsadas">
<%} else if(post.painting !== '') { %>
<meta itemprop="image" content="https://juxt.pretendo.cc/drawing/<%= post.id %>.png">
<meta itemprop="image" content="https://portal.cdn.pretendo.cc/drawing/<%= post.id %>.png?asdsadas">
<%}%>
<!-- Open Graph Meta Tags -->
@ -27,9 +27,9 @@
<meta property="og:description" content="<%= community.name %> - <%= post.empathy_count%> Yeahs!"/>
<meta property="og:url" content="https://juxt.pretendo.cc/posts/<%= post.id %>"/>
<% if(post.screenshot !== '') { %>
<meta property="og:image" content="https://juxt.pretendo.cc/screenshot/<%= post.id %>.png"/>
<meta property="og:image" content="https://portal.cdn.pretendo.cc/screenshot/<%= post.id %>.png?asdsadas"/>
<%} else if(post.painting !== '') { %>
<meta property="og:image" content="https://juxt.pretendo.cc/drawing/<%= post.id %>.png"/>
<meta property="og:image" content="https://portal.cdn.pretendo.cc/drawing/<%= post.id %>.png?asdsadas"/>
<%}%>
<meta property="og:site_name" content="Juxtaposition" />
@ -39,9 +39,9 @@
<meta name="twitter:description" content="<%= community.name %> - <%= post.empathy_count%> Yeahs!"/>
<meta name="twitter:site" content="@PretendoNetwork"/>
<% if(post.screenshot !== '') { %>
<meta name="twitter:image" content="https://juxt.pretendo.cc/screenshot/<%= post.id %>.png"/>
<meta name="twitter:image" content="https://portal.cdn.pretendo.cc/screenshot/<%= post.id %>.png?asdsadas"/>
<%} else if(post.painting !== '') { %>
<meta name="twitter:image" content="https://juxt.pretendo.cc/drawing/<%= post.id %>.png"/>
<meta name="twitter:image" content="https://portal.cdn.pretendo.cc/drawing/<%= post.id %>.png?asdsadas"/>
<%}%>
<meta name="twitter:creator" content="@PretendoNetwork"/>

View File

@ -0,0 +1,4 @@
User-agent:Twitterbot
Disallow:
User-agent: Googlebot