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