Closed as not planned
Description
Bug description
I think the default website should display the quarto version in the footer. e.g.:
I am building locally on a MacOS and deploying on a Windows machine an internal company website but don't have access to the deployment pipelines. Finding out the version of quarto used in deployment was a hassle.
I had to add the following
page-footer:
right: "This page is built with [Quarto](https://quarto.org/) v{{< meta version >}}"
And I had to add the following filter to my _quarto.yml
local function get_command_output(command)
local handle = io.popen(command)
local result = handle:read("*a"):gsub("%s+", "")
handle:close()
return result
end
function Meta(meta)
-- Get Quarto version
local quarto_version = get_command_output("quarto --version")
-- Add information to metadata
meta["version"] = (meta["version"] or "") .. quarto_version
return meta
end
It would be nice if
- There was a better way to access the quarto version using a shortcode (maybe there is? when I read through the docs / searched the docs I couldn't find it)
- If the default template for a website came with a
page-footer
section where the version was displayed.
Steps to reproduce
No response
Expected behavior
No response
Actual behavior
No response
Your environment
No response
Quarto check output
not relevant