Skip to content

Commit bf26476

Browse files
committed
Update template for trUrl capture; add README sections
1 parent d2a0f14 commit bf26476

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

errata/21.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ <h3>Editorial Errata</h3>
5454

5555
{%- assign trDate = "2018-06-05" -%}
5656
{%- capture trUrl -%}
57-
https://www.w3.org/TR/{{ trDate | split: "-" | first }}/REC-WCAG21-{{ trDate | replace: "-", "" }}/
57+
https://www.w3.org/TR/{{ trDate | split: "-" | first }}/REC-WCAG{{ page.fileSlug }}-{{ trDate | replace: "-", "" }}/
5858
{%- endcapture -%}
5959
<section id="since-{{ trDate }}">
6060
<h2>Errata since <a href="{{ trUrl }}">{{ trDate | date: "%d %B %Y" }} Publication</a></h2>

errata/README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
Errata are listed in reverse-chronological order, first sectioned by publish date,
44
then within each section based on when each erratum was added.
55

6+
## Sections
7+
68
The first top-level section under `<main>` corresponds to the latest version / unpinned URL;
79
subsequent sections correspond to previous versions / date-stamped URLs.
810

@@ -14,7 +16,7 @@ For sections corresponding to previous versions, assignments should follow this
1416
```
1517
{%- assign trDate = "YYYY-MM-DD" -%}
1618
{%- capture trUrl -%}
17-
https://www.w3.org/TR/{{ trDate | split: "-" | first }}/REC-WCAG21-{{ trDate | replace: "-", "" }}/
19+
https://www.w3.org/TR/{{ trDate | split: "-" | first }}/REC-WCAG{{ page.fileSlug }}-{{ trDate | replace: "-", "" }}/
1820
{%- endcapture -%}
1921
```
2022

@@ -25,6 +27,8 @@ The level 2 heading in the top-level section for each previous version should us
2527
<h2>Errata since <a href="{{ trUrl }}">{{ trDate | date: "%d %B %Y" }} Publication</a></h2>
2628
```
2729

30+
## Erratum format
31+
2832
Each erratum should be in the following format
2933
(replacing `YYYY-MM-DD`, `Section Title`, and `details of what happened`):
3034

0 commit comments

Comments
 (0)