mirror of
https://github.com/BobbyWibowo/lolisafe.git
synced 2024-12-13 07:56:23 +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,
|
||||
title: title,
|
||||
count: files.length,
|
||||
thumb: files[0].
|
||||
thumb,
|
||||
files
|
||||
})
|
||||
}).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: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>
|
||||
|
Loading…
Reference in New Issue
Block a user