created layout and updated twitter handle
This commit is contained in:
parent
21d88e79a3
commit
0a78480ebb
5 changed files with 34 additions and 4 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,3 +1,5 @@
|
||||||
node_modules
|
node_modules
|
||||||
.idea
|
.idea
|
||||||
config/config.json
|
config/config.json
|
||||||
|
config/sequelizeCliConfig.js
|
||||||
|
config/speechConfig.js
|
|
@ -185,6 +185,7 @@ module.exports = (app) => {
|
||||||
res.status(200).render('noChannel');
|
res.status(200).render('noChannel');
|
||||||
} else if (!result.claims) { // channel found, but no claims
|
} else if (!result.claims) { // channel found, but no claims
|
||||||
res.status(200).render('channel', {
|
res.status(200).render('channel', {
|
||||||
|
layout : 'channel',
|
||||||
channelName : result.channelName,
|
channelName : result.channelName,
|
||||||
longChannelId : result.longChannelId,
|
longChannelId : result.longChannelId,
|
||||||
shortChannelId: result.shortChannelId,
|
shortChannelId: result.shortChannelId,
|
||||||
|
@ -198,6 +199,7 @@ module.exports = (app) => {
|
||||||
} else { // channel found, with claims
|
} else { // channel found, with claims
|
||||||
const totalPages = determineTotalPages(result.claims.length);
|
const totalPages = determineTotalPages(result.claims.length);
|
||||||
res.status(200).render('channel', {
|
res.status(200).render('channel', {
|
||||||
|
layout : 'channel',
|
||||||
channelName : result.channelName,
|
channelName : result.channelName,
|
||||||
longChannelId : result.longChannelId,
|
longChannelId : result.longChannelId,
|
||||||
shortChannelId: result.shortChannelId,
|
shortChannelId: result.shortChannelId,
|
||||||
|
|
28
views/layouts/channel.handlebars
Normal file
28
views/layouts/channel.handlebars
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
|
||||||
|
<head>
|
||||||
|
<meta charset="UTF-8">
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||||
|
<title>Spee.ch</title>
|
||||||
|
<link rel="stylesheet" href="/assets/css/reset.css" type="text/css">
|
||||||
|
<link rel="stylesheet" href="/assets/css/general.css" type="text/css">
|
||||||
|
<link rel="stylesheet" href="/assets/css/mediaQueries.css" type="text/css">
|
||||||
|
<meta name="twitter:card" content="summary" />
|
||||||
|
<meta name="twitter:site" content="@spee_ch" />
|
||||||
|
<meta property="og:title" content="spee.ch">
|
||||||
|
<meta property="og:site_name" content="spee.ch">
|
||||||
|
<meta property="og:type" content="website">
|
||||||
|
<meta property="og:image" content="https://spee.ch/assets/img/Speech_Logo_Main@OG-02.jpg">
|
||||||
|
<meta property="og:url" content="http://spee.ch/">
|
||||||
|
<meta property="og:description" content="Open-source, decentralized image and video hosting.">
|
||||||
|
<!--google font-->
|
||||||
|
<link href="https://fonts.googleapis.com/css?family=Roboto:300" rel="stylesheet">
|
||||||
|
<!-- google analytics -->
|
||||||
|
{{ googleAnalytics }}
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
{{> navBar}}
|
||||||
|
{{{ body }}}
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -9,7 +9,7 @@
|
||||||
<link rel="stylesheet" href="/assets/css/general.css" type="text/css">
|
<link rel="stylesheet" href="/assets/css/general.css" type="text/css">
|
||||||
<link rel="stylesheet" href="/assets/css/mediaQueries.css" type="text/css">
|
<link rel="stylesheet" href="/assets/css/mediaQueries.css" type="text/css">
|
||||||
<meta name="twitter:card" content="summary" />
|
<meta name="twitter:card" content="summary" />
|
||||||
<meta name="twitter:site" content="@lbryio" />
|
<meta name="twitter:site" content="@spee_ch" />
|
||||||
<meta property="og:title" content="spee.ch">
|
<meta property="og:title" content="spee.ch">
|
||||||
<meta property="og:site_name" content="spee.ch">
|
<meta property="og:site_name" content="spee.ch">
|
||||||
<meta property="og:type" content="website">
|
<meta property="og:type" content="website">
|
||||||
|
@ -25,7 +25,6 @@
|
||||||
<script src="/assets/js/generalFunctions.js"></script>
|
<script src="/assets/js/generalFunctions.js"></script>
|
||||||
<script src="/assets/js/validationFunctions.js"></script>
|
<script src="/assets/js/validationFunctions.js"></script>
|
||||||
<script src="/assets/js/publishFileFunctions.js"></script>
|
<script src="/assets/js/publishFileFunctions.js"></script>
|
||||||
<script src="/assets/js/authFunctions.js"></script>
|
|
||||||
<script src="/assets/js/loginFunctions.js"></script>
|
<script src="/assets/js/loginFunctions.js"></script>
|
||||||
<script src="/assets/js/dropzoneFunctions.js"></script>
|
<script src="/assets/js/dropzoneFunctions.js"></script>
|
||||||
<script src="/assets/js/createChannelFunctions.js"></script>
|
<script src="/assets/js/createChannelFunctions.js"></script>
|
||||||
|
|
|
@ -21,7 +21,6 @@
|
||||||
<body>
|
<body>
|
||||||
<script src="/assets/js/generalFunctions.js"></script>
|
<script src="/assets/js/generalFunctions.js"></script>
|
||||||
<script src="/assets/js/validationFunctions.js"></script>
|
<script src="/assets/js/validationFunctions.js"></script>
|
||||||
<script src="/assets/js/authFunctions.js"></script>
|
|
||||||
<script src="/assets/js/loginFunctions.js"></script>
|
<script src="/assets/js/loginFunctions.js"></script>
|
||||||
<script src="/assets/js/navBarFunctions.js"></script>
|
<script src="/assets/js/navBarFunctions.js"></script>
|
||||||
{{> navBar}}
|
{{> navBar}}
|
||||||
|
|
Loading…
Reference in a new issue