Skip to content

Commit

Permalink
fix hard coded images in silex cms context
Browse files Browse the repository at this point in the history
  • Loading branch information
lexoyo committed Jun 9, 2024
1 parent c19d720 commit 2a4864d
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions client-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,16 +13,6 @@ 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
},
})
// CMS Plugin
config.addPlugin(SilexCms, {
Expand Down

0 comments on commit 2a4864d

Please sign in to comment.