Skip to content

Commit 3dc254b

Browse files
committed
Fixed relative file urls
1 parent 112ed75 commit 3dc254b

26 files changed

Lines changed: 7 additions & 2 deletions

File tree

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,9 @@ By default everything in `./src` will get compiled by `11ty`. For any files whic
1313
## Deployment
1414

1515
Having produced a build in `_site`, the entire directory is pushed up on a `gh-pages` branch to GitHub, and hosted exactly as-is.
16+
17+
## Publishing a new blog post
18+
19+
A new blog post should be authored within the `/src/blog` directory. It should have its own subdirectory. The name of the subdirectory will become the URL route, e.g. `/src/blog/42-foo/index.md` will become `rupertmckay.com/blog/42-foo`. I maintain a convention of prefixing the directories with a number in order to keep the directories chronologically ordered in the source code. The markdown file must be named `index.md` or else its name will be appended to the route URL, e.g. `/src/blog/42-foo/foo.md` will become `rupertmckay.com/blog/42-foo/foo`, which we don't want.
20+
21+
If the post requires any other files, such as images, these can be colocated and referenced plainly using relative URLs.

src/blog/01-generics-arent-as-scary-as-you-think/generics-arent-as-scary-as-you-think.md renamed to src/blog/01-generics-arent-as-scary-as-you-think/index.md

File renamed without changes.

src/blog/02-how-to-create-custom-hooks/how-to-create-custom-hooks.md renamed to src/blog/02-how-to-create-custom-hooks/index.md

File renamed without changes.

src/blog/03-understanding-react-dependency-arrays/understanding-react-dependency-arrays.md renamed to src/blog/03-understanding-react-dependency-arrays/index.md

File renamed without changes.

src/blog/04-seeing-through-jsx-to-understand-react-component-types/seeing-through-jsx-to-understand-react-component-types.md renamed to src/blog/04-seeing-through-jsx-to-understand-react-component-types/index.md

File renamed without changes.

src/blog/05-mocking-in-jest-with-typescript-and-react/mocking-in-jest-with-typescript-and-react.md renamed to src/blog/05-mocking-in-jest-with-typescript-and-react/index.md

File renamed without changes.

src/blog/06-handling-optional-values-in-typescript/handling-optional-values-in-typescript.md renamed to src/blog/06-handling-optional-values-in-typescript/index.md

File renamed without changes.

src/blog/07-publishing-typescript-react-components-to-npm/publishing-typescript-react-components-to-npm.md renamed to src/blog/07-publishing-typescript-react-components-to-npm/index.md

File renamed without changes.

src/blog/08-typescript-44-useunknownincatchvariables/typescript-44-useunknownincatchvariables.md renamed to src/blog/08-typescript-44-useunknownincatchvariables/index.md

File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)