Skip to content

Commit 36693a7

Browse files
committed
fix: spelling mistakes on Webmentions article
1 parent e1c96e4 commit 36693a7

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

thoughts/articles/2021-03-21_Webmentions-are-Fun.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ Once you've done that, that's it! You're ready to accept webmentions! Any pages
4242

4343
### Rendering webmentions
4444

45-
So this will be different depending on how your website works, but as I'm a crazy person who wrote their own (admiteddly very noddy) Static Site Generator, I had to do all this manually (code shamelessly stolen from Luke's article).
45+
So this will be different depending on how your website works, but as I'm a crazy person who wrote their own (admittedly very noddy) Static Site Generator, I had to do all this manually (code shamelessly stolen from Luke's article).
4646

4747
So, when I'm generating my articles, I first get all the webmentions for my site using the below script:
4848

@@ -66,7 +66,7 @@ export const getWebmentions = async (): Promise<any[]> => {
6666
};
6767
```
6868

69-
Ensre you define `WEBMENTION_BASE_URL`, `DOMAIN` and your `WEBMENTION_IO_TOKEN`, and you when this runs you'll now have all webmentions for your entire website!
69+
Ensure you define `WEBMENTION_BASE_URL`, `DOMAIN` and your `WEBMENTION_IO_TOKEN`, and you when this runs you'll now have all webmentions for your entire website!
7070

7171
So the next step is to filter out the webmentions you care about for each page. The following script takes all the webmentions, and filters out the ones that aren't any of the types we care about (more on that in a moment), and only for the page we care about:
7272

@@ -232,7 +232,7 @@ Now this is where my janky SSG really makes things look complicated, but essenti
232232
<!-- END_MENTIONS -->
233233
```
234234

235-
Those `<!-- START_X -->` and `<!-- END_X -->` blocks are for my SSG script to see which bits should be repeated. The script that then replaces them looks something like (ommitting the SSG jank bits):
235+
Those `<!-- START_X -->` and `<!-- END_X -->` blocks are for my SSG script to see which bits should be repeated. The script that then replaces them looks something like (omitting the SSG janky bits):
236236

237237
```typescript
238238
// TypeScript

0 commit comments

Comments
 (0)