Merge pull request #28 from matheus23/patch-2

Documentation typo: Metadata doesn't take a param
This commit is contained in:
Dillon Kearns 2019-12-16 10:09:30 -08:00 committed by GitHub
commit 71a0508a55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -25,7 +25,7 @@ your files (both code and content).
Each file in the `content` folder will result in a new route for your static site. You can define how to render the types of document in the `content` folder based on the extension any way you like.
```elm
helloDocument : Pages.Document.DocumentParser (Metadata) (List (Html Msg))
helloDocument : Pages.Document.DocumentParser Metadata (List (Html Msg))
helloDocument =
Pages.Document.parser
{ extension = "txt"
@ -51,7 +51,7 @@ helloDocument =
```
```elm
markdownDocument : Pages.Document.DocumentParser (Metadata msg) (List (Element Msg))
markdownDocument : Pages.Document.DocumentParser Metadata (List (Element Msg))
markdownDocument =
Pages.Document.parser
{ extension = "md"