mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-01 07:45:22 +03:00
Merge pull request #28 from matheus23/patch-2
Documentation typo: Metadata doesn't take a param
This commit is contained in:
commit
71a0508a55
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user