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