diff --git a/helpers/serveHelpers.js b/helpers/serveHelpers.js index d5dbdaf1..7301927c 100644 --- a/helpers/serveHelpers.js +++ b/helpers/serveHelpers.js @@ -40,6 +40,6 @@ module.exports = { }, showFileLite (fileInfo, res) { const openGraphInfo = createOpenGraphInfo(fileInfo); - res.status(200).render('showLite', { layout: 'show', fileInfo, openGraphInfo }); + res.status(200).render('showLite', { layout: 'showlite', fileInfo, openGraphInfo }); }, }; diff --git a/views/layouts/showlite.handlebars b/views/layouts/showlite.handlebars new file mode 100644 index 00000000..114bae03 --- /dev/null +++ b/views/layouts/showlite.handlebars @@ -0,0 +1,23 @@ + + + + + + + Spee.ch + + + + + {{#unless fileInfo.nsfw}} + {{{addTwitterCard fileInfo.fileType openGraphInfo.source openGraphInfo.embedUrl openGraphInfo.directFileUrl}}} + {{{addOpenGraph fileInfo.title fileInfo.fileType openGraphInfo.showUrl openGraphInfo.source fileInfo.description fileInfo.thumbnail}}} + {{/unless}} + + {{ googleAnalytics }} + + + {{{ body }}} + + + diff --git a/views/partials/assetInfo.handlebars b/views/partials/assetInfo.handlebars index 47a418ee..fd0faf2e 100644 --- a/views/partials/assetInfo.handlebars +++ b/views/partials/assetInfo.handlebars @@ -1,25 +1,5 @@ - -
-
-
- Share: -
-
-
- twitter -
-
- facebook -
-
- tublr -
-
- reddit -
-
-
-
+
+

{{fileInfo.description}}

@@ -57,6 +37,29 @@
+
+
+
+ Share: +
+
+
+ twitter +
+
+ facebook +
+
+ tublr +
+
+ reddit +
+
+
+
+
+
[more]
diff --git a/views/show.handlebars b/views/show.handlebars index 1d136cf1..c3360419 100644 --- a/views/show.handlebars +++ b/views/show.handlebars @@ -8,9 +8,6 @@
{{> asset}}
-
- {{fileInfo.description}} -