Skip to content

Commit

Permalink
lastupdated trial
Browse files Browse the repository at this point in the history
  • Loading branch information
corvusdeinanis committed Apr 23, 2024
1 parent cebf69e commit 68890fd
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
13 changes: 13 additions & 0 deletions content/Legal Terms.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
title: Legal Terms
date: 2024-04-23
tags:
- glossary
- legal
- law
lastupdated: 2024-04-23
---
Bills: Proposed laws drafted and debated by a legislative body before becoming official
laws

Acts:
6 changes: 3 additions & 3 deletions quartz/components/ContentMeta.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ export default ((opts?: Partial<ContentMetaOptions>) => {
const createdDate = formatDate(getDate(cfg, fileData)!)
let modifiedDateSegment = '';
if (fileData.frontmatter.modified) {
const modifiedDate = formatDate(new Date(fileData.frontmatter.modified));
modifiedDateSegment = `, modified on ${modifiedDate}`;
const modifiedDate = formatDate(new Date(fileData.frontmatter.lastupdated));
modifiedDateSegment = `, modified on ${modifiedDate}`;
}
segments.push(`Created on ${createdDate}${modifiedDateSegment}`)
segments.push(`🌱Created on ${createdDate}${modifiedDateSegment}`)
}

// Display reading time if enabled
Expand Down

0 comments on commit 68890fd

Please sign in to comment.