diff --git a/client-config.js b/client-config.js index 5dc8cc1..b744c56 100644 --- a/client-config.js +++ b/client-config.js @@ -9,6 +9,16 @@ export default async function (config) { // Replace /index.html with / return type === 'html' && path.endsWith('/index.html') ? path.replace(/index\.html$/, '') : path }, + transformPermalink(path, type) { + // Make absolute paths relative + switch (type) { + case 'css': + return path.startsWith('/') ? `.${path}` : path + case 'asset': + return path.startsWith('/') ? `.${path}` : path + } + return path + }, }) return {} } diff --git a/package.json b/package.json index 11eb20b..f89e7a1 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "author": "lexoyo", "license": "AGPL-3.0-or-later", "dependencies": { - "@silexlabs/silex": "^3.0.0-alpha.109", + "@silexlabs/silex": "^3.0.0-alpha.117", "@silexlabs/silex-dashboard": "^1.0.37" }, "repository": {