added title and description to opengraph
This commit is contained in:
parent
188608818c
commit
2cf6085d4b
1 changed files with 2 additions and 2 deletions
|
@ -48,11 +48,11 @@ const hbs = expressHandlebars.create({
|
|||
</script>`
|
||||
);
|
||||
},
|
||||
addOpenGraph (title, mimeType, showUrl, source) {
|
||||
addOpenGraph (title, mimeType, showUrl, source, description) {
|
||||
let basicTags = `<meta property="og:title" content="${title}">
|
||||
<meta property="og:url" content="${showUrl}" >
|
||||
<meta property="og:site_name" content="Spee.ch" >
|
||||
<meta property="og:description" content="View or download ${title} from spee.ch: the open-source, decentralized content host." >`;
|
||||
<meta property="og:description" content="${description}">`;
|
||||
if (mimeType === 'video/mp4') {
|
||||
return new Handlebars.SafeString(
|
||||
`${basicTags} <meta property="og:image" content="https://spee.ch/assets/img/content-freedom-large.png" >
|
||||
|
|
Loading…
Reference in a new issue