How to include post date modified/edited in quarto blog

Hello,
Is there any YAML tag to add a 'modified' or 'edited' date to my blog header? I don't find it in metablog manual or stackoverflow

Thanks,

There is a last modified date option that you could set: Quarto - Quarto Dates and Date Formatting

Then you have a date-format and a date-modified than you can set in HTML doc Quarto - HTML Options

Is this what you are looking for ?

2 Likes

Partially. That date code is ok, but I want to have it preceded by a text saying, let's say:
LAST MODIFIED: and then the date last-modified
So in my document I can show the date published AND the date last modified.

PUBLISHED:
LAST MODIFIED:

I'm writing in Spanish, so I am using the metadata label published-title: PUBLICADO.
Is there any way to add a metadata label to do the same with last modified date? In Spanish, that could be:

PUBLICADO:
ULTIMA MODIFICACION:

You can do that using the two date fields available as in doc I linked above. With spanish default is

---
title: prueba
date: 03/04/2022
date-modified: last-modified
lang: es
---

contenido

To customized the two translation follow the doc Quarto - Document Language

---
title: prueba
date: 03/04/2022
date-modified: last-modified
lang: es
language: 
  title-block-published: "PUBLICADO"
  title-block-modified: "ULTIMA MODIFICACION"
---
---

contenido

Is this what you are looking for ?

3 Likes

This topic was automatically closed 42 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.