Skip to content

Add a post template#430

Open
frankieroberto wants to merge 4 commits intomainfrom
add-example-template
Open

Add a post template#430
frankieroberto wants to merge 4 commits intomainfrom
add-example-template

Conversation

@frankieroberto
Copy link
Copy Markdown
Collaborator

This is aimed to make it quicker to get started, by giving you a template you can copy with all the relevant fields.

At some point soon there will also be a 'copy code' button added to this.

Screenshot 2026-03-25 at 17 05 49

This is aimed to make it quicker to get started, by giving you a template you can copy with all the relevant fields.
@edwardhorsford edwardhorsford temporarily deployed to dsps-design-add-example-vigpee March 25, 2026 17:06 Inactive
@frankieroberto frankieroberto self-assigned this Mar 26, 2026
Copy link
Copy Markdown
Collaborator

@veroje veroje left a comment

Choose a reason for hiding this comment

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

Great stuff, Frankie. Maybe add some other elements like lists and a table?


More content

![Alt text for an image](/your-service/2025/12/post-title/image.jpg)
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.

Add version with visible description?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@veroje I'm a bit wary of repeating https://design-history.prevention-services.nhs.uk/guide/using-markdown/ too much - but do you think we should have both examples here?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I've linked to the markdown guide which has both examples, so I think that's ok for now?

@frankieroberto frankieroberto temporarily deployed to dsps-design-add-example-vigpee March 26, 2026 10:21 Inactive
Comment on lines +19 to +32
title: This is the title of the post
date: 2025-12-01
description: This description will appear on index pages.
tags:
- add
- tags
- to help group
- related posts
author:
- Your Name (optional)
- Another Name
opengraphImage:
src: /your-service/2025/12/post-title/image-name.png
alt: Alternative text for the lead image (appears when sharing)
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.

Should probably say which of these are optional or not

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

I think technically everything is optional apart from title and date. Wasn't sure how best to make this clear though. Perhaps rather than adding (optional) it's better to have a line above the template saying something like:

All metadata is optional except for the title and date. Delete any lines you do not need.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@edwardhorsford Updated in b9a0ffd - look ok?

Co-authored-by: Ed Horsford <mail@edwardhorsford.com>
@frankieroberto frankieroberto temporarily deployed to dsps-design-add-example-vigpee March 26, 2026 10:46 Inactive
@frankieroberto frankieroberto temporarily deployed to dsps-design-add-example-vigpee March 26, 2026 14:01 Inactive
@roobottom
Copy link
Copy Markdown
Collaborator

Looks good. Can you include a markdown example for a figure with image and figcaption?

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