Skip to content

Conversation

@stumbo
Copy link
Member

@stumbo stumbo commented Nov 3, 2025

lastmod is used in sitemap.xml to help identify files that have changed and should be recrawled. Writing lastmod into the markdown file's YAML will ensure it takes precedence over the current date field, which represents the publication date of the item, not the last time the bibliographic entry was modified.

Resolves issue 2346

lastmod is used in the sitemap to help identify files that have changed
and should be recrawled.  Writing lastmod into the markdown file's
YAML will ensure it takes presidence over the current date field,
which represents the publication date of the item, not the last
time the bibliographic entry was modified.
Copy link
Contributor

@pamoroso pamoroso left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I haven't been using Perl for three decades but the code looks reasonable.

url_source: $urlSource
zotero_url: "https://www.zotero.org/groups/2914042/items/$key"
# Timestamp of last modification to bibliographic item
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the perl comment skipped in hugo as well.
I'm pretty sure that perl doesn't skip comments in the "here doc" string.

Copy link
Member Author

@stumbo stumbo Nov 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes - the comment flows into the markdown file and when Hugo processes it, it is ignored.

Here's what the yml header looks like in a file:

---
title: |
  Lisp Editing in the 80s - Interlisp SEdit

date: 2017-06-22
readabledate: 2017-06-22
type: bibliography
item_type: motion_picture
authors: 
editors: 
abstract: |
  Reuploaded from: 
  http://people.csail.mit.edu/riastradh...
  
  Thanks to "lispm" on reddit for all the info: 
  https://www.reddit.com/r/lisp/comment...
  
  From what I understand SEdit was developed later than DEdit. SEdit is documented first in the 1987 Lyric release of Interlisp-D, see Appendix B:
  http://bitsavers.trailing-edge.com/pd...
  SEdit is expanded in the virtual machine version of Interlisp-D, called Medley. See the Medley 1.0 release notes, appendix B:
  http://bitsavers.trailing-edge.com/pd...
  Some hints for using SEdit
  http://bitsavers.trailing-edge.com/pd...
  If you want to try it out, maybe this contains the editors:
  http://www2.parc.com/isl/groups/nltt/...


studio: "thoughtupquick"
video_recording_format: ""
series_title: ""
volume: ""
number_of_volumes: ""

tags:
url_source: https://www.youtube.com/watch?v=2qsmF8HHskg
zotero_url: "https://www.zotero.org/groups/2914042/items/4CCTNX5G"

# Timestamp of last modification to bibliographic item
lastmod: 2025-10-24T22:43:20Z
---

I wanted to make sure it the meaning of the lastmod was clear. Putting it at the bottom and separating it from the dates related to the entry itself, should make it clear this isn't directly related to when the item was initially published.

@MattHeffron MattHeffron linked an issue Nov 4, 2025 that may be closed by this pull request
@stumbo stumbo merged commit c48cdc3 into main Nov 4, 2025
@stumbo stumbo deleted the bs5_last_mod_date branch November 4, 2025 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

Bibliography: Add Modified Date to YAML description

4 participants