mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-26 04:31:39 +03:00
Add meta description helper function.
This commit is contained in:
parent
437018ddf6
commit
51f24dcc9b
@ -1,4 +1,4 @@
|
||||
module Pages.Head exposing (Tag, canonicalLink, metaName, metaProperty, toJson)
|
||||
module Pages.Head exposing (Tag, canonicalLink, description, metaName, metaProperty, toJson)
|
||||
|
||||
import Json.Encode
|
||||
|
||||
@ -42,6 +42,10 @@ metaProperty property content =
|
||||
]
|
||||
|
||||
|
||||
description descriptionValue =
|
||||
metaName "description" descriptionValue
|
||||
|
||||
|
||||
{-| Example:
|
||||
|
||||
metaName
|
||||
|
@ -193,7 +193,7 @@ pageTags canonicalUrl metadata =
|
||||
image =
|
||||
""
|
||||
in
|
||||
[ Head.metaName "description" description
|
||||
[ Head.description description
|
||||
, Head.metaName "image" image
|
||||
]
|
||||
++ SocialMeta.summaryLarge
|
||||
|
Loading…
Reference in New Issue
Block a user