Skip to content

Commit

Permalink
Content - Date modified: Fix iteration 1's code samples (#2395)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
EricDunsworth authored Jul 15, 2024
1 parent 40ae7be commit b6388a1
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
10 changes: 5 additions & 5 deletions _data/sites.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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": "<dl id=\"wb-dtmd\">\n\t<dt>Date modified:</dt>\n\t<dd><time property=\"dateModified\">YYYY-MM-DD</time></dd>\n</dl>"
},
{
"@type": "source-code",
"@language": "en",
"description": "Code sample with contact link",
"code": "&lt;dl id=\"wb-dtmd\">\n\t&lt;dt>Date de modification&nbsp;:&lt;/dt>\n\t&lt;dd>&lt;time property=\"dateModified\">YYYY-MM-DD&lt;/time>&lt;/dd>\n&lt;/dl>"
"@language": "fr",
"description": "Exemple de code",
"code": "<dl id=\"wb-dtmd\">\n\t<dt>Date de modification&nbsp;:</dt>\n\t<dd><time property=\"dateModified\">YYYY-MM-DD</time></dd>\n</dl>"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion sites/date-modified/date-modified-en.html
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion sites/date-modified/date-modified-fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
10 changes: 5 additions & 5 deletions sites/date-modified/index.json-ld
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -125,13 +125,13 @@
"@type": "source-code",
"@language": "en",
"description": "Code sample",
"code": "&lt;dl id=\"wb-dtmd\">\n\t&lt;dt>Date modified:&lt;/dt>\n\t&lt;dd>&lt;time property=\"dateModified\">YYYY-MM-DD&lt;/time>&lt;/dd>\n&lt;/dl>"
"code": "<dl id=\"wb-dtmd\">\n\t<dt>Date modified:</dt>\n\t<dd><time property=\"dateModified\">YYYY-MM-DD</time></dd>\n</dl>"
},
{
"@type": "source-code",
"@language": "en",
"description": "Code sample with contact link",
"code": "&lt;dl id=\"wb-dtmd\">\n\t&lt;dt>Date de modification&nbsp;:&lt;/dt>\n\t&lt;dd>&lt;time property=\"dateModified\">YYYY-MM-DD&lt;/time>&lt;/dd>\n&lt;/dl>"
"@language": "fr",
"description": "Exemple de code",
"code": "<dl id=\"wb-dtmd\">\n\t<dt>Date de modification&nbsp;:</dt>\n\t<dd><time property=\"dateModified\">YYYY-MM-DD</time></dd>\n</dl>"
}
]
}
Expand Down

0 comments on commit b6388a1

Please sign in to comment.