A collaboration between Natalie Byrom, Rachel Coldicutt and Sarah Gold.
We know the incoming Labour government needs to be ready to deliver, and to keep on delivering throughout its first term. To achieve this, we recommend that digital public-service renewal is united behind a mission to put people first, always.
It is available at www.peoplefirsttech.org/
This repo can be cloned by using git clone git@github.com:projectsbyif/openapis.git and installed by using npm install.
Here's what you need to know to use this template:
-
Before you start working, in Terminal, use
cdto move into where the repository is saved on your machine. -
Type
node index.jsto build the static site into thepublic/folder. -
You can use an HTTP server like http-server to view the site locally.
-
In
settings.yaml, you can change various things about the entire website. -
Most importantly, under
pages:insettings.yaml, you can define the titles and order of each page. For example:pages: - This isn't my beautiful house - This will be page two - This will be the last page -
In the
pagesfolder, you can add Markdown files that represent each page. The filename should be a slugified version of the page title, and should end in.md. -
For example, for a page called
This isn't my beautiful house, the Markdown file should be calledthis-isnt-my-beautiful-house.md. -
You don't need to add the title in the Markdown page, it will be added automatically from
settings.yaml. -
If you're having problems with disappeared pages, check the Markdown filename against the pages written in
settings.yaml.
Images used in longforms should have a maximum width or height of 1280px and a standard resolution of 72 dpi.
Including images in GitHub repositories makes them slugish. Instead:
-
Log into the IF CMS.
-
On the sidebar, click "Assets".
-
Click "Longform Assets".
-
Click "Upload files", then choose an image to upload.
-
Find the uploaded image and put a tick next to it.
-
Click the cog icon, then clikck "View asset".
-
Copy the image URL.
-
In your Markdown document, include an image like this:

These are bits of text that accompany the code to embed images in pages, useful for people that use screen readers. WebAIM gives this advice for writing alt tags:
- Try to convey the meaning of the image through words
- Don’t write more than a sentence where possible
- Don’t reuse text from the content of a page
- Don’t describe the image as an image
This site is hosted using Netlify. Changes to the master branch will automatically deploy the published site.