mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-25 12:52:27 +03:00
Update example.
This commit is contained in:
parent
3706bdf4a6
commit
282ebcaf0d
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user