Skip to content

Commit

Permalink
Updated image paths
Browse files Browse the repository at this point in the history
  • Loading branch information
shartte committed Jul 10, 2023
1 parent 29055f7 commit 8aa9256
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/components/BlockImage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export type BlockImageProps = {

function BlockImage({ width, height, ...rest }: BlockImageProps) {
const guide = useGuide();
const assetUrl = guide.baseUrl + "/" + rest["src@8"];
const assetUrl = guide.baseUrl + rest["src@4"];
return (
<img
src={assetUrl}
Expand Down
3 changes: 1 addition & 2 deletions src/page-compiler/image.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@ export default function compileImage(
const guide = context.guide;
let src = node.url;
if (src) {
const assetId = guide.resolveLink(src, context.pageId);
src = guide.getAssetUrl(assetId);
src = guide.baseUrl + src;
}
return (
<img
Expand Down

0 comments on commit 8aa9256

Please sign in to comment.