diff options
| -rw-r--r-- | routes/album.js | 2 | ||||
| -rw-r--r-- | views/album.handlebars | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/routes/album.js b/routes/album.js index 4fbb971..2c084b4 100644 --- a/routes/album.js +++ b/routes/album.js @@ -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' }) }) diff --git a/views/album.handlebars b/views/album.handlebars index 60fa0e9..5f67b0b 100644 --- a/views/album.handlebars +++ b/views/album.handlebars @@ -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> |