changed url to source

This commit is contained in:
bill bittner 2017-08-07 12:49:13 -07:00
parent 651dd53139
commit 44af9f4063
2 changed files with 3 additions and 3 deletions

View file

@ -52,7 +52,7 @@ const hbs = expressHandlebars.create({
if (type === 'image') { if (type === 'image') {
return new Handlebars.SafeString( return new Handlebars.SafeString(
`<meta property="og:title" content="${title}"/> `<meta property="og:title" content="${title}"/>
<meta property="og:url" content="${url}" /> <meta property="og:url" content="${source}" />
<meta property="og:site_name" content="Spee.ch" /> <meta property="og:site_name" content="Spee.ch" />
<meta property="og:description" content="Spee.ch: open-source, decentralized content hosting." /> <meta property="og:description" content="Spee.ch: open-source, decentralized content hosting." />
<meta property="og:image" content="${source}" /> <meta property="og:image" content="${source}" />
@ -64,7 +64,7 @@ const hbs = expressHandlebars.create({
} else if (type === 'video') { } else if (type === 'video') {
return new Handlebars.SafeString( return new Handlebars.SafeString(
`<meta property="og:title" content="${title}"/> `<meta property="og:title" content="${title}"/>
<meta property="og:url" content="${url}" /> <meta property="og:url" content="${source}" />
<meta property="og:site_name" content="Spee.ch" /> <meta property="og:site_name" content="Spee.ch" />
<meta property="og:description" content="Spee.ch: open-source, decentralized content hosting." /> <meta property="og:description" content="Spee.ch: open-source, decentralized content hosting." />
<meta property="og:image" content="https://spee.ch/assets/img/content-freedom-large.png" /> <meta property="og:image" content="https://spee.ch/assets/img/content-freedom-large.png" />

View file

@ -1,5 +1,5 @@
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en" prefix="og: http://ogp.me/ns#"> <html lang="en" prefix="og: http://ogp.me/ns# fb: http://ogp.me/ns/fb#">
<head> <head>
<meta charset="UTF-8"> <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no"> <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1, user-scalable=no">