fonsp / Pluto.jl

🎈 Simple reactive notebooks for Julia
https://plutojl.org/
MIT License
4.94k stars 285 forks source link

📰 Preview in frontmatter editor #2688

Closed fonsp closed 10 months ago

fonsp commented 10 months ago

https://github.com/fonsp/Pluto.jl/assets/6933510/95e7d33c-78c1-403b-aaac-cb4e9aace1e2

github-actions[bot] commented 10 months ago

Try this Pull Request!

Open Julia and type:

  julia> import Pkg
  julia> Pkg.activate(temp=true)
  julia> Pkg.add(url="https://github.com/fonsp/Pluto.jl", rev="featured-card-preview-in-frontmatter")
  julia> using Pluto
Pangoraw commented 10 months ago

Nice! :sparkles: it would be cool to be able to embed this as an og image in the static HTML export to have a preview when sharing a link to a notebook.

fonsp commented 10 months ago

With https://vercel.com/docs/functions/edge-functions/og-image-generation ! Seems really cool but also maybe too much work... Maybe @ctrekker is interested in adding this to glass one day?

ctrekker commented 10 months ago

Looks like a nice opportunity to make links cleaner when shared! Would you mind if I use the same card styling for published notebooks in Glass? The default behavior isn't very clean currently (see https://glassnotebook.io/r/R8vQF4q7Y08OyKT8Z3vvP/ for example), and it would be nice to mimic the card design language already used on the Pluto landing page

fonsp commented 10 months ago

Of course!! 💛