Skip to content

Commit f283172

Browse files
Fix incorrect guidance about where to save file (#97)
1 parent 9295f85 commit f283172

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

README.md

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,12 +18,13 @@ You will need to create some files and folders based on the name of your service
1818

1919
You’ll need to:
2020

21-
* create a folder for your service within `app/posts/`, for example `app/posts/your-service-name/`
22-
* create a folder with the same name in `app/images/`, for example `app/images/your-service-name/`
23-
* create a `your-service-name.json` file within `app/posts/` that adds the eleventyNavigation parent name as the name of your service (copy an existing example)
2421
* create a Markdown file in `app/posts/`, for example `app/posts/your-service-name.md`. Copy an existing example and update any references to match your service.
22+
* create a folder for your service in `app/images/`, for example `app/images/your-service-name/`
23+
* create a folder for your service in `app/posts/`, for example `app/posts/your-service-name/`
24+
* inside your service’s post folder, ceate a json file `your-service-name.json`, for exampole `app/posts/your-service-name/your-service-name.json`. Copy an existing example for what to put in it.
2525
* update `eleventy.config.js` to create a new 'collection' for your service (copy one of the existing examples)
26-
* update `app/_layouts/_product.njk` to list your new service in the `sections` variable
26+
* update `app/_layouts/_product.njk` to list your new service in the sections variable
27+
* open a pull request with your changes
2728

2829
See [Divide a design history into different sections](https://x-govuk.github.io/govuk-design-history/divide-a-design-history-into-sections/).
2930

app/guide/how-to-add-a-new-service.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,10 @@ You will need to create some files and folders based on the name of your service
1414

1515
You’ll need to:
1616

17-
* create a folder for your service within `app/posts/`, for example `app/posts/your-service-name/`
18-
* create a folder with the same name in `app/images/`, for example `app/images/your-service-name/`
19-
* create a `your-service-name.json` file within `app/posts/` that adds the eleventyNavigation parent name as the name of your service (copy an existing example)
2017
* create a Markdown file in `app/posts/`, for example `app/posts/your-service-name.md`. Copy an existing example and update any references to match your service.
18+
* create a folder for your service in `app/images/`, for example `app/images/your-service-name/`
19+
* create a folder for your service in `app/posts/`, for example `app/posts/your-service-name/`
20+
* inside your service’s post folder, ceate a json file `your-service-name.json`, for exampole `app/posts/your-service-name/your-service-name.json`. Copy an existing example for what to put in it.
2121
* update `eleventy.config.js` to create a new 'collection' for your service (copy one of the existing examples)
2222
* update `app/_layouts/_product.njk` to list your new service in the sections variable
2323
* open a pull request with your changes

0 commit comments

Comments
 (0)