mirror of
https://github.com/PretendoNetwork/juxtaposition-ui.git
synced 2026-04-25 16:20:11 -05:00
Added robots.txt. Updated meta data (again again)
This commit is contained in:
parent
a4a9ad11fa
commit
7412cab92f
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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'),
|
||||
};
|
||||
11
src/services/juxt-web/routes/web/robots.js
Normal file
11
src/services/juxt-web/routes/web/robots.js
Normal 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;
|
||||
|
|
@ -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"/>
|
||||
|
||||
|
|
|
|||
4
src/webfiles/web/robots.txt
Normal file
4
src/webfiles/web/robots.txt
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
User-agent:Twitterbot
|
||||
Disallow:
|
||||
|
||||
User-agent: Googlebot
|
||||
Loading…
Reference in New Issue
Block a user