Skip to content

Commit c221ba5

Browse files
committed
docs: update entry frontmatter key to title and fix tag styling
1 parent 377bf8e commit c221ba5

24 files changed

+30
-30
lines changed

docs/_includes/layouts/style-guide-updates.njk

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,17 +12,17 @@
1212

1313
{% set rows = [] %}
1414

15-
{%- for post in collections['style-guide-update'] -%}
16-
{% set link = '<a class="govuk-!-font-weight-bold" href="/content-standards/style-guide#'+post.data.anchor+'">'+post.data.entry+'</a>' %}
17-
{% set tagText = post.data.type | upperFirst %}
18-
{% set tagClass='govuk-tag govuk-tag--green' if post.data.type | lower === 'new' else 'govuk-tag govuk-tag--blue' %}
19-
{% set postContent = post.content | markdownify %}
15+
{%- for entry in collections['style-guide-update'] -%}
16+
{% set link = '<a class="govuk-!-font-weight-bold" href="/content-standards/style-guide#'+entry.data.anchor+'">'+entry.data.title+'</a>' %}
17+
{% set tagText = entry.data.type | upperFirst %}
18+
{% set tagClass='govuk-tag govuk-tag--green' if entry.data.type | lower === 'new' else 'govuk-tag govuk-tag--blue' %}
19+
{% set entryContent = entry.content | markdownify %}
2020

2121
{% set row = [
2222
{ html: link },
2323
{ html: govukTag({ text: tagText, classes: tagClass})},
24-
{ html: postContent },
25-
{ text: post.date | mojDate('date'), attributes: { 'data-sort-value': post.date | timestamp } }
24+
{ html: entryContent },
25+
{ html: entry.date | mojDate('date') | replace(' ', '&nbsp;'), attributes: { 'data-sort-value': entry.date | timestamp } }
2626
] %}
2727

2828
{% set rows = (rows.push(row), rows) %}

docs/style-guide-updates/2025-01-09-pnc-number.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
entry: PNC Number
2+
title: PNC Number
33
anchor: pnc-number
44
type: New
55
date: 2025-01-09

docs/style-guide-updates/2025-01-09-prison-establishment.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
entry: Prison, establishment
2+
title: Prison, establishment
33
anchor: prison%2C-establishment
44
type: New
55
date: 2025-02-25

docs/style-guide-updates/2025-02-21-category-such-as-category-a-prison.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
entry: Category (such as Category A prison)
2+
title: Category (such as Category A prison)
33
anchor: category-(such-as-category-a-prison)
44
type: updated
55
date: 2025-02-21

docs/style-guide-updates/2025-02-28-identity-numbers-hmpps-only.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
entry: Identity numbers (HMPPS only)
2+
title: Identity numbers (HMPPS only)
33
anchor: identity-numbers-%28hmpps-only%29
44
type: updated
55
date: 2025-02-28

docs/style-guide-updates/2025-03-26-probation-practitioner.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
entry: probation practitioner
2+
title: probation practitioner
33
anchor: probation-practitioner
44
type: updated
55
date: 2025-03-26

docs/style-guide-updates/2025-04-01-pre-sentence-report-psr.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
entry: pre-sentence report (PSR)
2+
title: pre-sentence report (PSR)
33
anchor: pre-sentence-report-%28psr%29
44
type: New
55
date: 2025-04-01

docs/style-guide-updates/2025-04-01-sds40.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
entry: SDS40
2+
title: SDS40
33
anchor: sds40
44
type: New
55
date: 2025-04-01

docs/style-guide-updates/2025-05-21-oasys.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
entry: OASys
2+
title: OASys
33
anchor: oasys
44
type: New
55
date: 2025-05-21

docs/style-guide-updates/2025-06-09-post-sentence-supervision-pss.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
entry: post-sentence supervision (PSS)
2+
title: post-sentence supervision (PSS)
33
anchor: post-sentence-supervision-%28pss%29
44
type: New
55
date: 2025-06-09

0 commit comments

Comments
 (0)