mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-14 00:16:21 +00:00
Added thumbnail to meta tags
This commit is contained in:
parent
6b72453d4a
commit
338e827f13
@ -51,7 +51,7 @@ routes.get('/a/:identifier', (req, res, next) => {
|
|||||||
layout: false,
|
layout: false,
|
||||||
title: title,
|
title: title,
|
||||||
count: files.length,
|
count: files.length,
|
||||||
thumb: files[0].
|
thumb,
|
||||||
files
|
files
|
||||||
})
|
})
|
||||||
}).catch(function(error) { console.log(error); res.json({ success: false, description: 'error' }) })
|
}).catch(function(error) { console.log(error); res.json({ success: false, description: 'error' }) })
|
||||||
|
@ -21,14 +21,14 @@
|
|||||||
<meta property="og:type" content="website" />
|
<meta property="og:type" content="website" />
|
||||||
<meta property="og:title" content="{{ title }} | {{ count }} files" />
|
<meta property="og:title" content="{{ title }} | {{ count }} files" />
|
||||||
<meta property="og:description" content="lolisafe.moe | A small safe worth protecting." />
|
<meta property="og:description" content="lolisafe.moe | A small safe worth protecting." />
|
||||||
<meta property="og:image" content="http://lolisafe.moe/images/logo_square.png" />
|
<meta property="og:image" content="{{ thumb }}" />
|
||||||
<meta property="og:image:secure_url" content="https://lolisafe.moe/images/logo_square.png" />
|
<meta property="og:image:secure_url" content="{{ thumb }}" />
|
||||||
|
|
||||||
<meta name="twitter:card" content="summary">
|
<meta name="twitter:card" content="summary">
|
||||||
<meta name="twitter:title" content="{{ title }} | {{ count }} files">
|
<meta name="twitter:title" content="{{ title }} | {{ count }} files">
|
||||||
<meta name="twitter:description" content="lolisafe.moe | A small safe worth protecting.">
|
<meta name="twitter:description" content="lolisafe.moe | A small safe worth protecting.">
|
||||||
<meta name="twitter:image" content="https://listen.moe/files/images/logo_square.png">
|
<meta name="twitter:image" content="{{ thumb }}">
|
||||||
<meta name="twitter:image:src" content="https://lolisafe.moe/images/logo_square.png">
|
<meta name="twitter:image:src" content="{{ thumb }}">
|
||||||
|
|
||||||
<title>{{ title }}</title>
|
<title>{{ title }}</title>
|
||||||
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.3.0/css/bulma.min.css">
|
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.3.0/css/bulma.min.css">
|
||||||
|
Loading…
Reference in New Issue
Block a user