quarto-dev / quarto-dev/quarto-cli

Not showing the last-modified date

Open
#2,745 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug
Dominant language
JavaScript
Stars
6k
Forks
458
Avg merge
1d 9h
Merged PRs (30d)
41

Description

Bug description

Publishing a qmd file with format hugo, the last-modified date is showing the published date ("March 19, 2022") rather than the date the qmd was last updated (October 6, 2022).


date: 2022-03-19
date-format: long
format: hugo
lastmod: last-modified

image

The whole qmd file is available here.

The whole output is published here, with both dates printed in the details twistie at the foot of the page per the above snippet.

lastmod: 'r Sys.Date()' in my other Rmarkdown files works okay.

Update 25/11 -- I've rebuilt the site with the html format to make fuller use of all the Quarto features including code-linking and date-modified etc.

RStudio IDE Version running on Mac OS:

RStudio 2022.07.1+554 "Spotted Wakerobin" Release (7872775ebddc40635780ca1ed238934c3345c5de, 2022-07-22) for macOS
Mozilla/5.0 (Macintosh; Intel Mac OS X 12_6_0) AppleWebKit/537.36 (KHTML, like Gecko) QtWebEngine/5.12.10 Chrome/69.0.3497.128 Safari/537.36

Checklist
  • Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
  • Please format your issue so it is easier for us to read the bug report.
  • Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
  • Please document the operating system you're running. If on Linux, please provide the specific distribution.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the linked content/project/happiness/index.qmd file and compare its last-modified metadata with the published Hugo output. Reproduce the issue using the provided front matter, then trace how Quarto passes lastmod: last-modified into Hugo. Done means the output shows the qmd update date rather than the publication date.

Written by the indexing model from the issue text.

Assessment

Tech stack
hugo, markdown
Domain
content, web-dev
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.