From b6388a131e52907e153f27a64763d50160f12ecc Mon Sep 17 00:00:00 2001
From: EricDunsworth <1907279+EricDunsworth@users.noreply.github.com>
Date: Mon, 15 Jul 2024 15:03:33 -0400
Subject: [PATCH] Content - Date modified: Fix iteration 1's code samples
(#2395)
That iteration's code samples had the following issues:
* Opening tags were coded as named entities (but not closing tags)... resulting in the named entities being literally shown in the samples
* French code sample wasn't categorized properly:
* Language was set to English
* Description was called "Code sample with contact link" (probably copied from one of the Page Feedback Tool [PFT]'s samples)
This resolves it by re-adding real opening tags and correcting French categorizations.
---
_data/sites.json | 10 +++++-----
sites/date-modified/date-modified-en.html | 2 +-
sites/date-modified/date-modified-fr.html | 2 +-
sites/date-modified/index.json-ld | 10 +++++-----
4 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/_data/sites.json b/_data/sites.json
index 4f20361eb5..f94c072995 100644
--- a/_data/sites.json
+++ b/_data/sites.json
@@ -479,7 +479,7 @@
"en": "Indicates the date on which the current page was last modified.",
"fr": "Indique la date à laquelle la page courante a été modifiée pour la dernière fois."
},
- "modified": "2023-11-02",
+ "modified": "2024-07-11",
"componentName": "date-modified",
"status": "stable",
"version": "1.0",
@@ -590,13 +590,13 @@
"@type": "source-code",
"@language": "en",
"description": "Code sample",
- "code": "<dl id=\"wb-dtmd\">\n\t<dt>Date modified:</dt>\n\t<dd><time property=\"dateModified\">YYYY-MM-DD</time></dd>\n</dl>"
+ "code": "
"
}
]
}
diff --git a/sites/date-modified/date-modified-en.html b/sites/date-modified/date-modified-en.html
index babca02b0d..b1dad87b20 100644
--- a/sites/date-modified/date-modified-en.html
+++ b/sites/date-modified/date-modified-en.html
@@ -2,7 +2,7 @@
{
"layout": "documentation",
"altLangPage": "date-modified-fr.html",
- "dateModified": "2023-11-02",
+ "dateModified": "2024-07-11",
"index_json": "index.json-ld",
"description": "Documentation on how to use the date modified.",
"language": "en",
diff --git a/sites/date-modified/date-modified-fr.html b/sites/date-modified/date-modified-fr.html
index 5bb4b639c0..3506d8638c 100644
--- a/sites/date-modified/date-modified-fr.html
+++ b/sites/date-modified/date-modified-fr.html
@@ -2,7 +2,7 @@
{
"layout": "documentation",
"altLangPage": "date-modified-en.html",
- "dateModified": "2023-11-02",
+ "dateModified": "2024-07-11",
"index_json": "index.json-ld",
"description": "Documentation sur l'utilisation de la date de modification.",
"language": "fr",
diff --git a/sites/date-modified/index.json-ld b/sites/date-modified/index.json-ld
index d5cbe335e4..31a57834ae 100644
--- a/sites/date-modified/index.json-ld
+++ b/sites/date-modified/index.json-ld
@@ -14,7 +14,7 @@
"en": "Indicates the date on which the current page was last modified.",
"fr": "Indique la date à laquelle la page courante a été modifiée pour la dernière fois."
},
- "modified": "2023-11-02",
+ "modified": "2024-07-11",
"componentName": "date-modified",
"status": "stable",
"version": "1.0",
@@ -125,13 +125,13 @@
"@type": "source-code",
"@language": "en",
"description": "Code sample",
- "code": "<dl id=\"wb-dtmd\">\n\t<dt>Date modified:</dt>\n\t<dd><time property=\"dateModified\">YYYY-MM-DD</time></dd>\n</dl>"
+ "code": "