From 82036040f70ab9d5b30afe372bcd43061acff5d8 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sat, 12 Aug 2023 23:44:22 -0300 Subject: content: transformContent: display large thumbs by default --- src/content/dependencies/transformContent.js | 1 + src/util/urls.js | 1 + 2 files changed, 2 insertions(+) (limited to 'src') diff --git a/src/content/dependencies/transformContent.js b/src/content/dependencies/transformContent.js index 588e5355..68d7eaa4 100644 --- a/src/content/dependencies/transformContent.js +++ b/src/content/dependencies/transformContent.js @@ -318,6 +318,7 @@ export default { thumb: { validate: v => v.is('small', 'medium', 'large'), + default: 'large', }, }, diff --git a/src/util/urls.js b/src/util/urls.js index 4d099acd..bd3a349a 100644 --- a/src/util/urls.js +++ b/src/util/urls.js @@ -142,6 +142,7 @@ const thumbnailHelper = (name) => (file) => file.replace(/\.(jpg|png)$/, name + '.jpg'); export const thumb = { + large: thumbnailHelper('.large'), medium: thumbnailHelper('.medium'), small: thumbnailHelper('.small'), }; -- cgit 1.3.0-6-gf8a5