HTML: Meta variables for the source file and URL path of the currently rendered *.qmd file? #5029
Unanswered
HenrikBengtsson
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I think the discussion in #2249 could be interesting to this. Especially, we expose in Lua filter some information (but still need to document #4499) Though, you would like to access this directly in the doc through shortcodes and not in a Lua filter. This is currently possible using an extension https://github.com/mcanouil/quarto-lua-env (if still working) and FR to include such feature inside Quarto is in #4770 that you can follow Nothing regarding accessible the page url though. @dragonstyle can we make this accessible in Lua somehow ? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hello, is there a meta variables or similar that gets me the path of the rendered source file, or the rendered HTML URL? Something like:
{{< meta source-file >}}
, or{{< meta book.html.page-url-path >}}
, or similar.Basically, I'd like to be able being able to generate URLs myself similar to the 'View source' and 'Edit this page' URLs created when specifying
repo-site
for a Quarto Book, e.g. addingSource file: {{< meta source-file >}}
to the footer. I'd also to add a permanent URL link to the footer for the rendered URL, e.g.Share link: {{< meta book.site-url >}}/{{< meta book.html.page-url-path >}}
.BTW, is there a way to list all available
{{< meta ... >}}
variables? Or is that a documented list of the most common ones? All I found in the official docs was https://quarto.org/docs/authoring/variables.html#meta.Beta Was this translation helpful? Give feedback.
All reactions