mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-24 15:12:01 +03:00
Include contents in generated code.
This commit is contained in:
parent
20c67bbbbf
commit
d0b9c19498
@ -17,18 +17,12 @@ port printAndExitFailure : String -> Cmd msg
|
||||
generatePage : PageOrPost -> String
|
||||
generatePage pageOrPost =
|
||||
interpolate """( [ {0} ]
|
||||
, \"\"\"|> Article
|
||||
author = Dillon Kearns
|
||||
title = Home Page
|
||||
tags = software other
|
||||
description =
|
||||
How I learned to use elm-markup.
|
||||
|
||||
This is the home page.
|
||||
\"\"\"
|
||||
, \"\"\"{1}\"\"\"
|
||||
)
|
||||
"""
|
||||
[ "\"\"" ]
|
||||
[ "\"\""
|
||||
, pageOrPost.contents
|
||||
]
|
||||
|
||||
|
||||
generate : { posts : List PageOrPost, pages : List PageOrPost } -> String
|
||||
|
Loading…
Reference in New Issue
Block a user