Update example.

This commit is contained in:
Dillon Kearns 2019-10-25 08:33:07 -07:00
parent 3706bdf4a6
commit 282ebcaf0d

View File

@ -148,8 +148,8 @@ view :
view siteMetadata page = view siteMetadata page =
case page.frontmatter of case page.frontmatter of
() -> () ->
StaticHttp.map3 StaticHttp.map2
(\elmCompanies starCount netlifyStars -> (\elmCompanies starCount ->
{ view = { view =
\model viewForPage -> \model viewForPage ->
{ title = "Landing Page" { title = "Landing Page"
@ -169,9 +169,6 @@ view siteMetadata page =
(StaticHttp.jsonRequest "https://api.github.com/repos/dillonkearns/elm-pages" (StaticHttp.jsonRequest "https://api.github.com/repos/dillonkearns/elm-pages"
(Decode.field "stargazers_count" Decode.int) (Decode.field "stargazers_count" Decode.int)
) )
(StaticHttp.jsonRequest "https://api.github.com/repos/dillonkearns/elm-markdown"
(Decode.field "stargazers_count" Decode.int)
)
layout body = layout body =
@ -243,7 +240,7 @@ head : () -> List (Head.Tag Pages.PathKey)
head () = head () =
Seo.summaryLarge Seo.summaryLarge
{ canonicalUrlOverride = Nothing { canonicalUrlOverride = Nothing
, siteName = "elm-pages" , siteName = "elm-pages external data example"
, image = , image =
{ url = images.iconPng { url = images.iconPng
, alt = "elm-pages logo" , alt = "elm-pages logo"