Skip to content

Display quarto version in footer by default #11642

Closed as not planned
Closed as not planned
@kdheepak

Description

@kdheepak

Bug description

I think the default website should display the quarto version in the footer. e.g.:

Image

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

  1. 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)
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    supporta request for support

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions