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