-
-
Notifications
You must be signed in to change notification settings - Fork 285
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.
Already on GitHub? Sign in to your account
馃拰 Pluto.frontmatter
#2008
馃拰 Pluto.frontmatter
#2008
Conversation
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="frontmatter-1")
julia> using Pluto |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the idea of having a frontmatter which can contain any valid Julia object. Very clever. All systems that I know fallback to string representations.
Yeah I think that that's nice for dates, not sure what else... Any cool ideas where this is useful? |
Co-authored-by: Rik Huijzer <rikhuijzer@pm.me>
Images maybe? That it handles storing images and getting permalinks for the open graph for Twitter thumbnails and stuff |
Extract frontmatter from a notebook, which is extra meta-information that the author attaches to the notebook, often including title, description, tags, author, and more. Search for frontmatter online to learn more.
Currently, you can give frontmatter to a notebook by defining a global variable
frontmatter
anywhere in the notebook, which should be a named tuple.This definition will be picked up (using syntax analysis) and evaluated. Note:
frontmatter
in your notebook.);
to hide it from being displayed, only the definition matters.This might change in the future, because we might make this a GUI thing!
Related to #1984