Added thumbnail to meta tags

This commit is contained in:
Pitu 2017-09-20 03:05:25 -03:00
parent 6b72453d4a
commit 338e827f13
2 changed files with 6 additions and 6 deletions

View File

@ -51,7 +51,7 @@ routes.get('/a/:identifier', (req, res, next) => {
layout: false,
title: title,
count: files.length,
thumb: files[0].
thumb,
files
})
}).catch(function(error) { console.log(error); res.json({ success: false, description: 'error' }) })

View File

@ -21,14 +21,14 @@
<meta property="og:type" content="website" />
<meta property="og:title" content="{{ title }} | {{ count }} files" />
<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:secure_url" content="https://lolisafe.moe/images/logo_square.png" />
<meta property="og:image" content="{{ thumb }}" />
<meta property="og:image:secure_url" content="{{ thumb }}" />
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="{{ title }} | {{ count }} files">
<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:src" content="https://lolisafe.moe/images/logo_square.png">
<meta name="twitter:image" content="{{ thumb }}">
<meta name="twitter:image:src" content="{{ thumb }}">
<title>{{ title }}</title>
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.3.0/css/bulma.min.css">
@ -54,7 +54,7 @@
<div class="columns is-multiline is-mobile" id="table">
{{#each files}}
<div class="column is-2">
<a href="{{this.file}}" target="_blank">{{{this.thumb}}}</a>
<a href="{{ this.file }}" target="_blank">{{{ this.thumb }}}</a>
</div>
{{/each}}
</div>