Skip to content

nbs 2 posts#115

Merged
jolumley-nhs merged 2 commits intomainfrom
nbs-jo
Apr 28, 2025
Merged

nbs 2 posts#115
jolumley-nhs merged 2 commits intomainfrom
nbs-jo

Conversation

@jolumley-nhs
Copy link
Copy Markdown
Collaborator

New posts for NBS book:

  • Making the appointment selection clearer for users
  • improving the booking complete screen

@frankieroberto frankieroberto temporarily deployed to screening-de-nbs-jo-fqxopfgfri April 24, 2025 12:55 Inactive
Just spotted this - @colinrotherham is this what you were referring to when you mentioned changing the date to match the file name?
@jolumley-nhs jolumley-nhs temporarily deployed to screening-de-nbs-jo-fqxopfgfri April 28, 2025 08:42 Inactive
Comment on lines +8 to +14
<figure>

![Screenshot from the NHS design system, showing the new panel component](panelcomponent.png)


<figcaption>From the <a href="https://service-manual.nhs.uk/design-system/components/panel">NHS.UK Design System</a></figcaption>
</figure>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@paulrobertlloyd I've seen screenshot items being looped, but is there a better Nunjucks way to output these figure and figcaptions?

Copy link
Copy Markdown
Collaborator

@paulrobertlloyd paulrobertlloyd Apr 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For individual figures with figcaption, you can use the following Markdown:

![Alternative text](/path/to/file.jgp "Caption")

The templates also support providing a list of screenshots at the bottom of a post. For that, you can use the screenshots array, i.e.

---
title: My post
screenshots:
  items:
    - Start page
    - Confirmation page
---

The above assumes that the two images are named start-page.png and confirmation-page.png. If you want to reference invidual files, you can use the src value, and if you want to add a caption, you cam add the caption value, like so:

---
title: My post
screenshots:
  items:
    - text: Start page
      caption: This is the start page.
    - text: Confirmation page
      src: confirmation-page-with-photo.jpg
      caption: We show a photograph on the confirmation page
---

Here’s an example of a page with a list of screenshots: https://design-history.prevention-services.nhs.uk/manage-vaccinations-in-schools/2024/03/pilot-record-a-vaccination/

Might this be worth documenting in the guide area @frankieroberto?

Copy link
Copy Markdown
Collaborator

@paulrobertlloyd paulrobertlloyd Apr 28, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the above, you could conceivably use the following Markdown:

![Screenshot from the NHS design system, showing the new panel component](panelcomponent.png "From the [NHS.UK Design](https://service-manual.nhs.uk/design-system/components/panel) System")

But I’d discourage using Markdown inside the caption because a.) it might not work and b.) this is really intended to be used as the title attribute on the image, which of course can not display HTML (this is a commonly used hack around Markdown’s lack of support for figures and figcaptions)

Copy link
Copy Markdown
Collaborator

@colinrotherham colinrotherham left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like everything's working as intended

Maybe the bold text like "The new screen" should all be heading 3s?

-**The new screen**
+###The new screen

@jolumley-nhs jolumley-nhs merged commit b4c3004 into main Apr 28, 2025
2 checks passed
@jolumley-nhs jolumley-nhs deleted the nbs-jo branch April 28, 2025 09:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants