mirror of
https://github.com/KevinMidboe/zoff.git
synced 2025-10-29 18:00:23 +00:00
modified open-graph type depending on url
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
<meta property="og:url" content="https://zoff.me" />
|
||||
<meta property="og:title" content="Zoff"/>
|
||||
<meta property="og:description" content="The Shared (free) YouTube and SoundCloud radio."/>
|
||||
<meta property="og:type" content="website"/>
|
||||
<meta property="og:type" content="{{type}}"/>
|
||||
<meta property="fb:app_id" content="1581693815380949" />
|
||||
<link rel="manifest" href="/assets/manifest.json">
|
||||
{{#unless embed}}
|
||||
|
||||
@@ -60,6 +60,7 @@ router.route('/').post(function(req, res, next){
|
||||
router.route('/api/embed').get(function(req, res, next) {
|
||||
var data = {
|
||||
year: year,
|
||||
type: "video",
|
||||
javascript_file: "embed.min.js",
|
||||
captcha: res.recaptcha,
|
||||
analytics: analytics,
|
||||
@@ -80,6 +81,7 @@ router.route('/api/apply').get(function(req, res, next) {
|
||||
javascript_file: "token.min.js",
|
||||
captcha: res.recaptcha,
|
||||
analytics: analytics,
|
||||
type: "website",
|
||||
activated: false,
|
||||
id: "",
|
||||
correct: false,
|
||||
@@ -102,6 +104,7 @@ router.route('/api/apply/:id').get(function(req, res) {
|
||||
captcha: res.recaptcha,
|
||||
analytics: analytics,
|
||||
activated: true,
|
||||
type: "website",
|
||||
token: result[0].token,
|
||||
correct: true,
|
||||
stylesheet: "style.css",
|
||||
@@ -119,6 +122,7 @@ router.route('/api/apply/:id').get(function(req, res) {
|
||||
analytics: analytics,
|
||||
activated: false,
|
||||
token:"",
|
||||
type: "website",
|
||||
correct: false,
|
||||
stylesheet: "style.css",
|
||||
embed: false,
|
||||
@@ -144,6 +148,7 @@ function root(req, res, next) {
|
||||
javascript_file: "remote.min.js",
|
||||
captcha: res.recaptcha,
|
||||
analytics: analytics,
|
||||
type: "website",
|
||||
stylesheet: "style.css",
|
||||
embed: false,
|
||||
client: false,
|
||||
@@ -159,6 +164,7 @@ function root(req, res, next) {
|
||||
captcha: res.recaptcha,
|
||||
analytics: analytics,
|
||||
stylesheet: "style.css",
|
||||
type: "website",
|
||||
embed: false,
|
||||
client: false,
|
||||
og_image: "https://zoff.me/assets/images/small-square.jpg",
|
||||
@@ -204,6 +210,7 @@ function channel(req, res, next) {
|
||||
javascript_file: "remote.min.js",
|
||||
captcha: res.recaptcha,
|
||||
analytics: analytics,
|
||||
type: "website",
|
||||
stylesheet: "style.css",
|
||||
embed: false,
|
||||
client: false,
|
||||
@@ -235,6 +242,7 @@ function channel(req, res, next) {
|
||||
javascript_file: "main.min.js",
|
||||
captcha: res.recaptcha,
|
||||
analytics: analytics,
|
||||
type: "video",
|
||||
stylesheet: "style.css",
|
||||
embed: false,
|
||||
client:false,
|
||||
|
||||
Reference in New Issue
Block a user