A shortcode allow you to abstract away the styling/html structuring of an iframe from the user. This allows us to provide standard styling on the iframe and keep it consistent among stories.
A partial is a resuable component in hugo, very similar to components in React. You can imagine this as an anywhere-droppable component in Hugo (This include shortcodes).
Allow people who are creating new pages in the content folder to add deepnote in their markdown easily.
This can be implemented first as a partial, then ported to a shortcode, which then gives easy access for use in the markdown.
See https://discourse.gohugo.io/t/solved-shortcodes-show-partials-in-md/15361 for an example
What is a shortcode?
A shortcode allow you to abstract away the styling/html structuring of an iframe from the user. This allows us to provide standard styling on the iframe and keep it consistent among stories.
See https://gohugo.io/content-management/shortcodes/ for more info.
What is a partial?
A partial is a resuable component in hugo, very similar to components in React. You can imagine this as an anywhere-droppable component in Hugo (This include shortcodes).
See https://gohugo.io/templates/partials/ for more info.