Skip to content

Commit

Permalink
with nice monkey patch
Browse files Browse the repository at this point in the history
  • Loading branch information
fonsp committed Oct 30, 2023
1 parent d2a76e5 commit 27a49bd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion frontend/components/welcome/FeaturedCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ export const FeaturedCard = ({ entry, source_manifest, direct_html_links, disabl
disable_ui: `true`,
name: title == null ? null : `sample ${title}`,
pluto_server_url: `.`,
slider_server_url: u(source_manifest?.slider_server_url),
// little monkey patch because we don't want to use the slider server when for the CDN source, only for the featured.plutojl.org source. But both sources have the same pluto_export.json so this is easiest.
slider_server_url: source_url?.includes("cdn.jsdelivr.net/gh/JuliaPluto/featured") ? null : u(source_manifest?.slider_server_url),
})

const author = author_info(entry.frontmatter)
Expand Down

0 comments on commit 27a49bd

Please sign in to comment.