Skip to content

Commit

Permalink
Use smaller twitter card for pages with elm-pages icon as logo.
Browse files Browse the repository at this point in the history
  • Loading branch information
dillonkearns committed Jan 28, 2020
1 parent 76e32ad commit 1e0ceb7
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions examples/docs/src/Main.elm
Original file line number Diff line number Diff line change
Expand Up @@ -414,6 +414,10 @@ header stars currentPath =
]
[ logoLink
, Element.row [ Element.spacing 15 ] (navbarLinks stars currentPath)
, Element.link []
{ url = "/doesnt-exist.pdf"
, label = Element.text "Pdf"
}
]
]
]
Expand Down Expand Up @@ -511,7 +515,7 @@ head metadata =
commonHeadTags
++ (case metadata of
Metadata.Page meta ->
Seo.summaryLarge
Seo.summary
{ canonicalUrlOverride = Nothing
, siteName = "elm-pages"
, image =
Expand All @@ -527,7 +531,7 @@ head metadata =
|> Seo.website

Metadata.Doc meta ->
Seo.summaryLarge
Seo.summary
{ canonicalUrlOverride = Nothing
, siteName = "elm-pages"
, image =
Expand Down Expand Up @@ -600,7 +604,7 @@ head metadata =
}

Metadata.BlogIndex ->
Seo.summaryLarge
Seo.summary
{ canonicalUrlOverride = Nothing
, siteName = "elm-pages"
, image =
Expand All @@ -616,7 +620,7 @@ head metadata =
|> Seo.website

Metadata.Showcase ->
Seo.summaryLarge
Seo.summary
{ canonicalUrlOverride = Nothing
, siteName = "elm-pages"
, image =
Expand All @@ -625,7 +629,7 @@ head metadata =
, dimensions = Nothing
, mimeType = Nothing
}
, description = siteTagline
, description = "See some neat sites built using elm-pages! (Or submit yours!)"
, locale = Nothing
, title = "elm-pages sites showcase"
}
Expand Down

0 comments on commit 1e0ceb7

Please sign in to comment.