-
Notifications
You must be signed in to change notification settings - Fork 115
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’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
creating a Date object from fd_mtime? #700
Comments
you should access
you can test this quickly in a Julia session (this is what I did before answering): s = """
@def last_modified=Date(locvar(:fd_mtime))
{{last_modified}}
""" |> fd2html this will show |
By the way why did you not just do Note |
thank you for your quick response! I tried your code snippet, but it printed I wanted to convert The |
Ah right you want
(I should add that one in the docs...) |
Hi,
I would like to create a
Date
object fromfd_mtime
to be used in e.g. indicating last modified time on my blog post. However, adding this to the top of my markdown file does not workbecaue
fd_mtime
is not defined in this scope. What is the best way to define suchlast_modified
.In case there are other ways to handle this, here is an excerpt of the header that I want to make work.
The text was updated successfully, but these errors were encountered: